October 2019
Intermediate to advanced
350 pages
9h 5m
English
When publishing an MQTT message, you always need to specify the exact topic where it should go, as in the following example:
/kitchen/smart-coffee-machine/temperature
Let's say that the smart coffee machine with MQTT has various channels that can be used to control it and receive its status (for example, the current temperature):
/kitchen/smart-coffee-machine/temperature/kitchen/smart-coffee-machine/status/kitchen/smart-coffee-machine/make-coffee
If we had another smart device to monitor our ceiling light and smart coffee machine, we could then subscribe to multiple channels:
/kitchen/smart-coffee-machine/temperature/kitchen/smart-coffee-machine/status/kitchen/ceiling-light/status
If, one year after you finish reading this book, ...
Read now
Unlock full access