Skip to content

lost connection to Modbus API leads to noneType Error #8

@dani-bell

Description

@dani-bell

In case the Modbus connection is interrupted, the _read_registers function in MTECmodbusAPI.py tries to reconnect.

If this works the connection is established again, but the register is not read and the return is empty (NoneType).
This could be improved by calling self.modbus_client.read_holding_registers to read the data out of the reconnected Modbus.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions