mcci-catena / Catena-Arduino-Platform

Arduino platform library for MCCI Catena IoT Systems
MIT License
12 stars 11 forks source link

Add 24-bit float encoding support #321

Closed terrillmoore closed 2 years ago

terrillmoore commented 2 years ago

AbstractTxBuffer_t<> could benefit from the 24-bit floating point format used in the Model 4811 meter; if limiting uplinks to 11 bytes, it gets you from 2 values maximum to 3 max, plus a few extra bytes. Since very few measurements have even 17 bits of precision, a natural reduction of IEEE-754 onto 24 bits is quite useful.