libmodbuspp
libmodbuspp copied to clipboard
[BUG] Byte order mismatch
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.