KioCustomSerialDevice Class

Supplimental functionality for the Custom Serial Device. Most noteably, it provides the ablity to write to the device.

Functions

Type Signature
bool IsOpen(string devName = null)
Check if the device is opened or not.
int WriteBytes(byte[] v, bool readResponse = true, string callbackName = null, string devName = null)
Queues a write command to send to the device.
int WriteHex(string v, bool readResponse = true, string callbackName = null, string devName = null)
Queues a write command to send to the device.
int SetSentinels(string begS, string endS, string callbackName = null, string devName = null)
Sets begin and end sentinels for reading.
int SetLengthIndicators(int byteIndex = -1, int lengthModifier = 0, string callbackName = null, string devName = null)
Sets length byte indicators for reads.

Page Callbacks

Type Signature
Callback OnKioDeviceCmdResult(devName, id, cmd, err, data)
Called in response to a command.