CAN DragonEmSA
methodEmSACANLibrary

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

ParameterDirectionTypeDescription
ifaceinEmSACANInterfaceEntry from .
disableRTCUpdateinTrue to skip sending host date/time on connect.
clientNameinOptional display name for this client (null = anonymous). In CDNet-mediated mode this name appears as ChannelClientSummary.Name in ListInterfaces responses seen by other clients. Only the name from the first call in the process takes effect.

Return value

Connected device instance.

Example

// See Quick Start and Program Flow for a full session example.
// EmSACANLibrary.Connect(...);