When a client publishes to a topic, the data is sent to the broker, which is then sent over all the clients.
Clients will connect to the network, which can subscribe or publish to a topic. How it WorksĪs mentioned in the introduction, MQTT is a publish/subcribe messaging protocol. There are lot of other MQTT broker than Mosquitto eclipse, like EMQ X, VerneMQ, HiveMQ CE. It is part of the Eclipse Foundation, is an project and is sponsored by.
The Mosquitto project also provides a C library for implementing MQTT clients, and the very popular mosquitto_pub and mosquitto_sub command line MQTT clients. This makes it suitable for Internet of Things messaging such as with low power sensors or mobile devices such as phones, embedded computers or microcontrollers. The MQTT protocol provides a lightweight method of carrying out messaging using a publish/subscribe model. It is available as a free download for Windows and Linux and is an Eclipse project.
Mosquitto is a lightweight open source message broker that Implements MQTT versions 3.1.0, 3.1.1 and version 5.0.