modbus4j
modbus4j copied to clipboard
fix connection error when open stream
When open a new connection, it will throw a NullPointerException if the serial wire does not connect.
After connection open, if the slave device is not exist, the stream should be closed and stop reading bits from device, fixed in file src/com/serotonin/modbus4j/sero/messaging/InputStreamListener.java at line 108.
:)