SerialPort.this

Creates new serial port instance.

Parameters

port string

Port name. On Posix, it should be reffer to device file like /dev/ttyS<N>. On Windows, port name should be like COM<N> or any other.

readTimeout Duration

Setups constant timeout on read operations.

writeTimeout Duration

Setups constant timeout on write operations. In posix is ignored.

Throws

InvalidParametersException, InvalidDeviceException

Meta