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

[BUG] Byte order mismatch #13

Open
maxlein opened this issue Apr 24, 2021 · 0 comments
Open

[BUG] Byte order mismatch #13

maxlein opened this issue Apr 24, 2021 · 0 comments

Comments

@maxlein
Copy link

maxlein commented Apr 24, 2021

When I start a server with this config, and read registers out like that:

Modbus::Data<float, Modbus::EndianBigLittle> values[4];  // is cdab order

if (slave->readRegisters (1, values, 4) > 0)  
... 

Then I get wrong data.
Only if I use EndianLittleBig, I get correct results.

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