Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change in pymodbus library #4

Open
UgoPoddine opened this issue Feb 11, 2023 · 0 comments
Open

Change in pymodbus library #4

UgoPoddine opened this issue Feb 11, 2023 · 0 comments

Comments

@UgoPoddine
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant