Remember that Messages are super tiny ... We shall encode Sensor Data in CBOR ... And our Data Source needs to decode the CBOR Payload

lupyuen.github.io/articles/ttn

@lupyuen Floating point numbers compress great with CBOR, you just gotta know the precision you want. (Mostly into 16bit halfs: 12.34 has as much precision there as in decimal, and takes exactly as many bytes as 1234).

Then again, floats on embedded are annoying. (But if it was just that, 1234x10**-2 is just 6 bytes of CBOR and usable w/o needing to know your sensor's scaling factor).

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.