I try ‘<f’ and ‘>f’ but without luck.
I probably don’t fully understand https://docs.python.org/3/library/struct.html
When I change data format to int, it give me 17266 = 0x00004372 but I need 0x43720000 (as input for float).
Strange thing: both ‘<f’ and ‘>f’ give me a value 4, but 0x00004372 is 2.4194819285e-41
How can I swap this “double bytes”? ( @pnbruckner can you help me, please? )
Hello, I still don’t know how to change big/little endian, but my problem was, that I need to read 2 registers (2x16bit) to make one (32bit float). Still not depends on ‘<f’ or ‘>f’, but it works…