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

Updates for Pymodbus 3.8 #756

Open
wants to merge 27 commits into
base: main
Choose a base branch
from
Open

Updates for Pymodbus 3.8 #756

wants to merge 27 commits into from

Conversation

WillCodeForCats
Copy link
Owner

@WillCodeForCats WillCodeForCats commented Feb 6, 2025

Updates for Pymodbus 3.8 to replace depreciated functions.

@WillCodeForCats WillCodeForCats added bug Something isn't working update Update or change to something labels Feb 6, 2025
@WillCodeForCats WillCodeForCats self-assigned this Feb 6, 2025
@WillCodeForCats WillCodeForCats linked an issue Feb 6, 2025 that may be closed by this pull request
3 tasks
@WillCodeForCats WillCodeForCats force-pushed the pymodbus_3_8 branch 2 times, most recently from 8918e61 to 44ba889 Compare February 6, 2025 20:48
@WillCodeForCats WillCodeForCats changed the title Update write entities for Pymodbus 3.8 Updates for Pymodbus 3.8 Feb 7, 2025
@WillCodeForCats WillCodeForCats linked an issue Feb 7, 2025 that may be closed by this pull request
Convert a list of 16-bit unsigned integers into a string. Each int is 2 bytes.

This method exists because pymodbus ModbusClientMixin.convert_from_registers with data_type=DATATYPE.STRING needs errors="ignore" added to handle SolarEdge strings. Instead we decode the registers as DATATYPE.UINT16 and then use this method to get a string from the list of integers.

Ref: https://github.com/pymodbus-dev/pymodbus/blob/7fc8d3e02d9d9011c25c80149eb88318e7f50d0e/pymodbus/client/mixin.py#L719
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working update Update or change to something
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BinaryPayloadDecoder is deprecated Select function not working, storage command mode
1 participant