In
|
self._mb.write_register(addr, value, unit=0x01) |
self._mb.write_register is used. But this writes only one address at once, which is only valid for devices expecting 16 bit values. Devices with values like int32 or int64 expect writing all relevant addresses at once and not in sequence. Hence self._mb.write_registers (plural) is required. Sure, this might require code changes at many other positions.
In
modbus4mqtt/modbus4mqtt/modbus_interface.py
Line 149 in d563879