Back to list
Lv.3

MQTT

MQTT

A communication protocol that lets devices send each other short messages through a relay server.

In Simple Terms

MQTT is a set of communication rules that lets devices exchange information through a relay server while keeping the amount of data small. Senders and receivers don't need to connect directly. A receiver signs up in advance for the labels it cares about, and only the matching information is delivered to it automatically. Because it uses very little power and network capacity, it's widely used for connecting things like temperature sensors and home appliances to the internet.

Behind the Name

It started as "MQ Telemetry Transport," named after IBM's "IBM MQ" product family. Later the letters stopped standing for anything, and "MQTT" became a name in its own right. Telemetry means measuring things from far away and sending the readings back. The protocol was designed to be lightweight so it could monitor oil pipelines even over weak satellite links.

Take a Closer Look!

MQTT is a set of communication rules where senders and receivers don't connect directly. Instead, they send short messages to each other through a relay server. Because the amount of data exchanged is tiny, it works well on small devices and in places where the network is unreliable.
That's why it's widely used for connecting home appliances and sensors to the internet.

Here's how it works: the relay server acts as a "broker," and a sender hands data to it with a label called a "topic." A receiver registers the topics it wants with the broker ahead of time, so any data that matches is delivered automatically.
Senders and receivers don't need to know each other's addresses, so it's easy to add or swap out devices later.

You can also choose how reliable the delivery should be, from three levels, depending on how important the data is. For example, "send it quickly, even if it might not arrive," or "confirm it was received and resend if needed."
MQTT also keeps an already-open connection alive while waiting for the next message, which saves more battery than reconnecting every time.