struct.error: bad char in struct format #2430
-
I have been working with chatgpt to try and figure this out but to no avail. What is really confusing is the req and res seems correct and the last DEBUG:pymodbus.loggging line shows [60] which is the correct value in that register. how come the bad struct? OS: linux (paired down on an IOT cell router) logs/output: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The issue was wordorder and byteorder were not set properly. once i had those values aligned with the sensor i was using the request and response from the modbus engine worked as expected. |
Beta Was this translation helpful? Give feedback.
The issue was wordorder and byteorder were not set properly. once i had those values aligned with the sensor i was using the request and response from the modbus engine worked as expected.