mdm.COMPort


The COMPort Class has been deprecated in Zinc 4.0. It is included for legacy support but is no longer maintained and maybe removed completely in a future 4.x update.

Methods
The following table lists the methods for the COMPort class

Method Description Availability
COMPort.close() Closes the serial port.
COMPort.open() Opens the specified serial communication port.
COMPort.send() Sends a string through the serial port. This command also allows you to send HEX data in the fo...
COMPort.sendFileContents() Sends the contents of the specified file through the serial port.
COMPort.sendHEXData() Sends the specified HEX data through the serial port.
COMPort.setEcho() Enables echo. Any data sent to the application will be automatically sent back to the remote end.
COMPort.useLineMode() When enabled, the COMPort.onCOMPortData event will be fired only when the character specified i...
COMPort.useThreshold() When enabled, the COMPort.onCOMPortData event will be fired only when the specified amount of b...

Properties
The following table lists the properties for the COMPort class

Method Description Availability
COMPort.ports The variable contains delimited list by comma...

Events
The following table lists the events for the COMPort class

Method Description Availability
onCOMPortData Dispatched when data has been received throug...
onCOMPortDataSent Dispatched when data has been successfully se...
onCOMPortHEXData Dispatched when data has been received throug...