pyhys / minimalmodbus

Easy-to-use Modbus RTU and Modbus ASCII implementation for Python.
Apache License 2.0
306 stars 146 forks source link

Feature/readlonglong #94

Closed martijndegouw closed 1 year ago

martijndegouw commented 1 year ago

Add support for reading 65bit longs.

pyhys commented 1 year ago

Maybe the _bytes_to_long() function should accept number_of_registers=4 EDIT: OK, that is how it is implemented here. Fine.

pyhys commented 1 year ago

Thanks for the contribution! 64-bit integers are now supported in the version released today. I did not use exactly your code (it is rather similar), however I listed you as one of the authors: https://minimalmodbus.readthedocs.io/en/stable/authors.html