drogue-iot / drogue-cloud

Cloud Native IoT
https://drogue.io
Apache License 2.0
114 stars 30 forks source link

Create a proposal for automatic CBOR to JSON translation on the endpoints. #141

Open ctron opened 2 years ago

ctron commented 2 years ago

The cloud side likes JSON. However, that can be pretty verbose and thus problematic for low power devices, or data networks where every byte counts.

CBOR provides a more efficient way of serializing the data, and it should be translatable to JSON.

The idea is to provide an automatic translation of CBOR to JSON (and back for commands) so that each side can use their preferred format. Not changing the actual data of the payload.