MQTT Retained messages
Overview In this post, I show how to use the MQTT Retain message to simplify an IoT system.
I will use a Smart Home example to explain this topic.
Smart Home example We have two “smart” light bulbs connected to the MQTT Broker.
Based on the structure of our IoT system, we defined the following general MQTT Topic structure:
OWNER_ID/HOUSE_ID/ROOM_ID/light
So the Topic structure for this specific deployment is following: