int WriteHex (string, string)
Writes a hex-encoded string to the specified device.
Trust Level Required: Full Trust
The name of the device in the Configuration Tool.
The string of data to write to the device.
The Configuration Tool will allow the user to provide a name for the device and provide a description. This name will be used for all communication between KioWare and the device. It is mandatory to use the identical string when calling into this method.
The number of bytes written to the device.
//The name of the device will be user defined in the Configuration Tool. var devName = "device"; var stringify = 3523.toString(16)); //write hex-encoded string to device if(KioRawSerialDevice.WriteHex(devName, stringify).length == stringify.length) console.log(stringify + " written to " + devName);
KioWare for Windows version 8.11 or greater.