![]() There are many broker implementations, but the most popular is called “Mosquitto”. The alarm system can subscribe to all the thermostat topics and every time the temperature changes, the alarm system will get an update.įor all of this to happen, the only service that you need to run and that devices need to discover is the MQTT Broker. Going even further, imagine that this house has a fire alarm system and the alarm system monitors all thermostats. ![]() In other words, the heater from room 1 subscribes or listens to the topic “sensor/thermostat/room1”. It is now able to know the room temperature. The heaters can then subscribe to the thermostat topic for the room they’re in. These heaters can then be placed in each room that has a temperature sensor of its own. Now that we know the temperature of each room, imagine we have some smart-heaters that are capable of reading the room temperature via MQTT. ![]() Sensor / thermostat / room1 sensor / thermostat / room2 sensor / thermostat / room3 sensor / thermostat / room4 sensor / thermostat / room5 ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |