From b62a1d83ca5858d235436dc2508b20fc8a82f65b Mon Sep 17 00:00:00 2001 From: Matthias Urlichs Date: Thu, 8 Feb 2024 10:47:28 +0100 Subject: [PATCH] Data is in INPUT registers. I wonder how the heck this could ever have worked. --- Eastron_device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eastron_device.py b/Eastron_device.py index d8beec4..71f5c2f 100644 --- a/Eastron_device.py +++ b/Eastron_device.py @@ -30,7 +30,7 @@ def read_data_regs(self, regs, d): start = regs[0].base count = regs[-1].base + regs[-1].count - start - rr = self.modbus.read_holding_registers(start, count, unit=self.unit) + rr = self.modbus.read_input_registers(start, count, unit=self.unit) latency = time.time() - now