Protocols
Saved & recent

MQTT

Also called: MQTT 5.0

MQTT is a compact client/server publish–subscribe messaging protocol used in many device and telemetry systems. Clients publish to topic names and subscribe with topic filters. A server, commonly called a broker, forwards matching application messages and manages the protocol’s session behavior.

For example, a sensor can publish a reading to building/room1/temperature while a dashboard subscribes to building/+/temperature. MQTT defines three quality-of-service levels with different delivery behavior. Those guarantees concern protocol delivery between a sender and receiver; they do not automatically make an external action, such as charging a card, happen exactly once.

Read first
Publish–subscribe
Related
Publish–subscribe, Delivery semantics, Heartbeat and keepalive, CoAP
Further reading
OASIS MQTT Version 5.0
21° sensor broker dashboard published topic building/room1/temperature subscription filter building/+/temperature matching delivery QoS 0 QoS 1 QoS 2 choices for one delivery hop
Illustrative MQTT publication to building/room1/temperature matches the subscription filter building/+/temperature. The wildcard is in the filter, not the published topic. Publisher-to-broker and broker-to-subscriber deliveries are separate hops with their own QoS behavior.

View in the full Protocols collection