System design

Bus communication

MQTT topic

If you’re in a hurry, just go to more examples v0.1 or more examples v0.2.

The rationale of the topology tells you how the MQTT topic looks like and tries to explain why it is designed this way.

You can even peek at the topic decoder implementation.

MQTT message

We usually prefer bunches of multiple measurement values, but sending them discrete one by one is perfectly fine as well, see also message payload by example.

It’s really just a plain flat JSON object, mapping field names to measurement values like:

{"temperature": 42.84, "humidity": 83}

Go ahead and send anything you like.