absmach / magistrala

Industrial IoT Messaging and Device Management Platform
https://www.abstractmachines.fr/magistrala.html
Apache License 2.0
2.47k stars 671 forks source link

Use CBOR for device messages (SenML-over-CBOR) #368

Closed drasko closed 5 years ago

drasko commented 6 years ago

Currently we use JSON SenML for device messaging. Using JSON for telemetry messages for embedded devices is heavy and unsuitable for several reasons:

Both of these points (battery and bandwidth price) are crucial.

SenML supports CBOR encoding by standard.

Additionally, and related to #367, we can use COSE for security.

evarga commented 6 years ago

I agree that this is a good choice, since support of CBOR is part of the SenML specification. Moreover, CBOR is also a proposed standard under RFC 7049.