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.
Setups constant timeout on read operations.
Setups constant timeout on write operations. In posix is ignored.
Setups timeout on read operations depending on buffer size.
Setups timeout on write operations depending on buffer size. In posix is ignored.
Note: Total timeout is calculated as timeoutMult*buff.length + timeoutConst.
InvalidParametersException, InvalidDeviceException
Creates new serial port instance.