Releases: retrodaredevil/io-lib
IOBundle improvements
I'm making a new release because SolarThing has been successfully using this code for about 4 months now.
Additions since v2.2.0:
- More exceptions that inherit from
ModbusRuntimeException
- Added RS485 option that is only supported with jSerialComm.
Breaking changes if
- You have your own custom class implementing
IOBundle
-- New methods are required to be implemented - You use
AsciiDataEncoder.fromAscii()
- If you have been instantiating
RedundancyException
orUnexpectedSlaveResponseException
Exceptions for exception codes and read input registers support
Added exceptions for modbus exception codes and added support to read input registers in modbus.
Added purejavacomm library
Added purejavacomm library. You can choose between purejavacommand jSerialComm as your serial implementation.
Version 2!
Version 2 has many breaking changes and must be imported differently than previous versions because of its use of multiple modules.
TCP is now supported.
ModbusRuntimeException thown in rare cases
ModbusRuntimeException is now thown in rare cases. In previous versions there were rare cases where an incorrect exception was thrown. This update makes sure that not matter what data is thrown at you, you'll always get the correct ModbusRuntimeException.
Correct exception thrown
Correct exception thrown. Rarely a RuntimeException used to be thrown instead of a ModbusRuntimeException if an exception was thrown while reading.
Made SerialPortException inherit IOException
Made SerialPortException inherit IOException and updated jSerialComm version.
Added ability to parse
Added ability to parse. Also has breaking changes
Better error messages
Better error messages and added sleepTime to RTUDataEncoder.
Changes to IOBundle
Changes to IOBundle. close() method does nothing by default. Added static of(InputStream, OutputStream) method and two constants.