libmodbus icon indicating copy to clipboard operation
libmodbus copied to clipboard

[bug] MODBUS_FC_WRITE_SINGLE_COIL reply

Open yaoyanlianglove opened this issue 2 years ago • 1 comments

In function modbus_reply, the rspLength of MODBUS_FC_WRITE_SINGLE_COIL reply is error.

'rspLength = reqLength' should be 'rspLength = reqLength - 2;'

yaoyanlianglove avatar Jan 11 '23 01:01 yaoyanlianglove

Why? Could you elaborate, please? According to my understanding of https://modbus.org/docs/Modbus_Application_Protocol_V1_1b3.pdf the implementation is correct.

mhei avatar Jan 16 '23 21:01 mhei