fablabbcn / smartcitizen-api

The Smart Citizen Engine
https://developer.smartcitizen.me
GNU Affero General Public License v3.0
10 stars 4 forks source link

Device message serialization improvements #301

Open pral2a opened 4 months ago

pral2a commented 4 months ago

Currently, the MQTT API accepts readings in two formats:

Finding an efficient serialisation yet standard method to replace raw might be relevant for platform growth and standardisation.

That will allow forwarding MQTT messages to third-party platforms in a well-defined standard instead of a custom "broken" JSON.

Potential standards:

https://msgpack.org/index.html https://protobuf.dev/