What is MQTT and what is it used for?
Message Queuing Telemetry Transport (MQTT) is a pure IoT protocol. It was designed in 1999 by Andy Stanford-Clark (IBM) and Arlen Nipper (Arcom, now Cirrus Link) specifically to address communication between machines - Machine to Machine (M2M).
You can find MQTT in a wide range of applications, such as industrial, health, logistics, mobile, connected cars, smart buildings, and smart cities.
MQTT is based on short messages with a publish-subscribe mechanism.
Let’s see some characteristics of MQTT:
- Lightweight and bandwidth-efficient
- Design adapted to constrained devices
- Low power consumption
- Data agnostic
- Management of sessions
- Quality of Service (QoS) implementation
- SSL/TLS encryption
- User and client ID management
The basic idea of MQTT is to exchange data between clients. Each client connects to a server running an MQTT service (broker).
A client can send data to the broker (publish...