Skip to content

Change in pymodbus library #4

@UgoPoddine

Description

@UgoPoddine

Hello,

due to changes in pymodbus library new version, it's required to adjust the pzem.py as follow :

a) from pymodbus.pdu import ModbusRequest in place of from pymodbus.client.sync import ModbusSerialClient as ModbusClient
b) replacing all result = client.read_input_registers (0x0000, 8, unit= chanAddr) with result = client.read_input_registers (0x0000, 8, slave = chanAddr)

Best regards
UP

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