Modbus master V1.2.2, Floating data is incorrect #73
iotclouddeveloper
started this conversation in
General
Replies: 1 comment
-
Your device is probably using little-endian byte order, swapping the word order, or both. If you can provide an example of the bytes you're receiving I might be able to help you figure out which. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
the device reports a floating point number(11708533.0), I use 03function code,the code is
ByteBuf buf = response.getRegisters();
float result = buf.readFloat();
but I can get 11708533.0,What is the reason for this?
Kind regards, Thanks.
Beta Was this translation helpful? Give feedback.
All reactions