Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device message serialization improvements #301

Open
pral2a opened this issue Feb 16, 2024 · 0 comments
Open

Device message serialization improvements #301

pral2a opened this issue Feb 16, 2024 · 0 comments

Comments

@pral2a
Copy link
Member

pral2a commented Feb 16, 2024

Currently, the MQTT API accepts readings in two formats:

  • device/sck/%s/readings used by a device to publish one or multiple sensor readings in JSON format
  • device/sck/%s/readings/raw used by a device to publish sensor readings in `raw`` non-standard format (see custom parser)

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants