Cloud-Automation / node-modbus

Modbus TCP Client/Server implementation for Node.JS
465 stars 174 forks source link

Modbus RTU CRC #213

Closed ghost closed 6 years ago

ghost commented 6 years ago

It appears that in the rtu-request.js file that the CRC is done on just the body portion of the message when it should include the address as well. Additionally I think that the CRC should be applied to the payload as little endian instead of big endian.

stefanpoeter commented 6 years ago

Thanks @jspaeth20, it is already handled in branch v3.1-dev