CAN DragonEmSA
methodCanDragonDevice

CanDragonDevice.Connect

Prototype

CanDragonDevice Connect(string serial, bool disableRTCUpdate, string? clientName = null);

Description

Opens a device by FTDI serial number and returns a managed session.

Parameters

ParameterDirectionTypeDescription
serialinstringDevice serial (Unicode). Use for the virtual internal loopback interface in CDNet mode ().
disableRTCUpdateinboolTrue 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.
// CanDragonDevice.Connect(...);