void Close(string)
Closes a serial port for the specified device.
Security
Trust Level Required: Full Trust
Parameters
Name | Description |
devName |
string The name of the device in the Configuration Tool. |
Remarks
This will disable communication with 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.
Examples
//The name of the device will be user defined in the Configuration Tool.
var devName = "rawserialdevice";
if(KioRawSerialDevice.IsOpen(devName))
{
KioRawSerialDevice.Close(devName);
}
Requirements
KioWare for Windows version 8.11 or greater.