October 2019
Intermediate to advanced
350 pages
9h 5m
English
The topic name specifies where MQTT messages are sent to. Each MQTT server has its own topics, which can be freely defined on the fly by the publishers. Imagine a topic as a tree of categories. Each / defines a sub-category. So, when we look back at the topic name from the previous section, /living-room/my-custom-coffee-machine, we can see that the topic consists of two components:
If, next to your custom smart coffee machine, you had another smart device in the living room, which communicates via MQTT, let's say a custom smart light, you could publish its information in the same /living-room root topic: /living-room/my-custom-smart-light.
Read now
Unlock full access