emonhub icon indicating copy to clipboard operation
emonhub copied to clipboard

Change Endian.Big to Endian.BIG as per pymodbus change

Open jkjaer opened this issue 1 month ago • 1 comments

In https://github.com/pymodbus-dev/pymodbus/pull/1743, pymodbus changed constants.Endian into being an enumeration, resulting in that Endian.Big was changed into Endian.BIG. Unfortunately, this change has broken the EmonModbusTcpInterfacer class which uses Endian.Big for both the byte and word order when calling BinaryPayloadDecoder.fromRegisters (also from pymodbus).

To fix the problem, Endian.Big should be changed to Endian.BIG in EmonModbusTcpInterfacer.py.

jkjaer avatar May 14 '24 17:05 jkjaer