Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

As you can see from the example above, the script will "translate" all payloads from a hexadecimal format to a decimal format.

Info
iconfalse

Because of the fact that floating point is not supported → every calculation behind a decimal point will be "rounded up" to a whole number. This is why the script will calculate the temperature and acceleration values scaled by 1000 (multiplied by 1000).
So, if you see the temperature as temp=25546, the real temperature is 25.546 C (25546/1000) and if you see accelZ=15, the real acceleration against the z-axis will be 0.015 m/s2 (15/1000).

...