bool IsOpen(string)
This method checks to see if the specified device has an open connection to a serial port.
Security
Trust Level Required: Full Trust
Parameters
Name | Description |
devName |
string The name of the device in the Configuration Tool. |
Return
True if the device has an open connection via a serial port.
Remarks
Serial communication in KioWare is accomplished over a serial port. All serial devices require such a connection for any communication.
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.
Examples
//The name of the device will be user defined in the Configuration Tool.
var devName = "rawserialdevice";
if(!KioRawSerialDevice.IsOpen(devName))
{
if(!KioRawSerialDevice.Open(devName)) console.log(devName + " failed to open.");
}
Requirements
KioWare for Windows version 8.11 or greater.