Error in JSerialComm implementation
A modbus library implemented in Java.
Brought to you by:
kochedykov
Not opening the serial port.
See SerialPortJSerialComm.java. In method open().
Line port.openPort(); seems to be missing.
Read timeout not working. Blocking indefinitely.
See SerialPortJSerialComm.java. In methodread().
Use
c = in.read(byte[], int, int)
instead of
in.read().
Refer to: https://github.com/Fazecast/jSerialComm/issues/32
Fixed, thank you.