gavinying / modpoll

A New Command-line Tool for Modbus and MQTT
https://gavinying.github.io/modpoll
MIT License
84 stars 17 forks source link

* added missing datatypes for 64bit #6

Closed FreakErn closed 1 year ago

FreakErn commented 1 year ago
FreakErn commented 1 year ago

The bool Reference looks to me it creates a gap between pymodbus (decode_bits moves the pointer one byte (+1) forward) and modpoll (which moves 16bit (+1) forward) so every value i request after that bool in the same poll is broken. Maybe in the future someone could update to the newer version of pymodbus and send the parameter package_len=2

gavinying commented 1 year ago

You are right, the bool type is not working properly in current version, last year I was waiting for pymodbus v3 to come out. Now it's time to update the dependencies and I shall look into the issue again. Thank you for your interest and contribution to the project.