This commit is contained in:
2025-12-03 19:03:46 +01:00
parent 1a32b20648
commit 6faed5441c
2 changed files with 4 additions and 3 deletions

View File

@@ -51,6 +51,7 @@ class ModbusHandler:
dataType = DATA_TYPES[data_type]
count = dataType.value[1]
logger.debug(f"{self.client=}, {addr=}, {count=}, {slave=}")
res = readFunc(self.client, addr, count=count, device_id=slave)
if (isinstance(res, pymodbus.pdu.register_message.ReadHoldingRegistersResponse) or
isinstance(res, pymodbus.pdu.register_message.ReadInputRegistersResponse) or