What is MQTT

MQTT (Message Queue Telemetry Transport) is a lightweight, publish-subscribe messaging protocol that is designed for resource-constrained devices and low-bandwidth, high-latency networks. It is used for machine-to-machine (M2M) communication and is commonly used in IoT applications.

The MQTT protocol uses a publish-subscribe model, where devices, known as clients, can publish data to a broker (server) and other clients can subscribe to receive that data. This allows for efficient data transfer and reduces the need for devices to constantly poll for new information.

MQTT also includes features such as quality of service (QoS) levels, which allow clients to specify the level of reliability they require for their data transfers. It also has a lightweight binary protocol, which makes it well suited for resource-constrained devices, such as those with limited processing power and storage.

Overall MQTT is a widely used protocol for IoT communication, it’s efficient, simple and very light. Many IoT platforms, devices and libraries support this protocol.