digitalpetri / modbus

Modbus TCP, Modbus RTU/TCP, and Modbus RTU/Serial for Java 17+.
Eclipse Public License 2.0
655 stars 222 forks source link

Allow CRC mismatch to be ignored #87

Open kevinherron opened 15 hours ago

kevinherron commented 15 hours ago

Discussed in https://github.com/digitalpetri/modbus/discussions/85

Although perhaps ill advised, it should be possible to construct a ModbusRtuClient that ignores a CRC mismatch and delivers the response anyway.

At the same time we can improve the CRC mismatch exception handling by introducing a ModbusCrcException that includes the frame as a field.