Skip to content

Constructor DeviceConnection

Namespace: Belay.Core
Assembly: Belay.Core.dll

DeviceConnection(ConnectionType, string, ILogger<DeviceConnection>)

Initializes a new instance of the class.

csharp
public DeviceConnection(DeviceConnection.ConnectionType type, string connectionString, ILogger<DeviceConnection> logger)

Parameters

type DeviceConnection.ConnectionType

The connection type.

connectionString string

The connection string (port name or executable path).

logger ILogger<DeviceConnection>

The logger instance.

Released under the Apache License 2.0.