Replies: 2 comments 3 replies
-
Please see the examples. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Hi I have a device that has a large amount of registers, I can't read and decode each register one by one. u16 = client.convert_from_registers(rr.registers[offset:offset+1] ...
offset += 1
# un uint32
u32 = client.convert_from_registers(rr.registers[offset:offset+2] ....
offset += 2
# un float32
f32 = client.convert_from_registers(rr.registers[offset:offset+2] .... Thank you |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How to use convert_from_registers instead of BinaryPayloadDecoder with multiple different data types?
Old code:
Beta Was this translation helpful? Give feedback.
All reactions