2
0
2
2
-0
2
26
Configuration
New Driver Instance for TCP/IP
Initializes a new driver instance that can be used to communicate with the device via TCP/IP.
While the IP address must be specified, the default VSXPORT = 50005 can be used.
There is no plugin name for this sensor version. The port and the plugin name are only optional.
Asynchronous Function
public static VsxProtocolDriver Init(string ipAddress, int port =
VSXPORT, string pluginName = "")
Synchronous Function
public static VsxProtocolDriverSync Init(string ipAddress, int port
=VSXPORT, string pluginName = "")
Possible error IDs: None
Establish a Connection
Establishes a connection to the device using the parameters set using Init. CONNECTION_-
TIMEOUT_MS = 1000 can be used as the timeout for opening the connection. A connection to
the device must be established to use all non-static functions.
Asynchronous Function
public async Task<(bool Succ, Error ErrorDesc)> Connect(int timeout =
CONNECTION_TIMEOUT_MS)
Synchronous Function
public (bool Succ, Error ErrorDesc) Connect(int timeout = VsxProto-
colDriver.CONNECTION_TIMEOUT_MS)
Possible error IDs: VSX_DRIVER_CONNECTION_ERROR
Disconnecting
Asynchronous Function
public async Task<(bool Succ, Error ErrorDesc)> Disconnect()
Synchronous Function
public (bool Succ, Error ErrorDesc) Disconnect()
Possible error IDs: None