modbus-core icon indicating copy to clipboard operation
modbus-core copied to clipboard

Fix rtu request pdu length calculation

Open AsgerWenneb opened this issue 5 months ago • 2 comments

PR to fix the request PDU length calculation mentioned in https://github.com/slowtec/modbus-core/issues/12.

My application doesn't use coils but I've attempted to implement the fix for FC 0x0F as well. I have not looked at the TCP implementation at all (I have no experience with it). An error was also added for when the quantity and bytes fields don't match up.

AsgerWenneb avatar Aug 11 '25 09:08 AsgerWenneb