EmSACANLibrary.Connect
Prototype
CanDragonDevice Connect(EmSACANInterface iface, bool disableRTCUpdate = false, string? clientName = null);
Description
Connects to an enumerated interface. Uses an empty serial for the internal loopback interface.
Parameters
| Parameter | Direction | Type | Description |
|---|---|---|---|
iface | in | EmSACANInterface | Entry from |
disableRTCUpdate | in | — | True to skip sending host date/time on connect. |
clientName | in | — | Optional display name for this client (null = anonymous). In CDNet-mediated mode this name appears as |
Return value
Connected device instance.
Example
// See Quick Start and Program Flow for a full session example.
// EmSACANLibrary.Connect(...);