public class SerialConnection extends IConnection
handle| Constructor and Description |
|---|
SerialConnection(java.lang.String portName,
long baudRate) |
public SerialConnection(java.lang.String portName,
long baudRate)
throws CannotOpenPortException
portName - Name of serial port used to communicate with the device. On Windows system that would be COMx and on Linux/Unix system typically /dev/ttyXXX.baudRate - Communication rate in bauds.CannotOpenPortException - Occurs when specified serial port cannot be open.