MQTT essentials
Learn MQTT. Build reliable connected systems.
Explore MQTT from the fundamentals to production-ready architectures. Learn how to connect devices, applications, and industrial systems, move data reliably in real time, and scale from your first MQTT project to enterprise IoT and IIoT deployments.
MQTT is the most commonly used messaging protocol for the Internet of Things (IoT). MQTT formerly stood for MQ Telemetry Transport. The protocol is a set of rules that defines how IoT devices can publish and subscribe to data over the Internet. MQTT is used for messaging and data exchange between IoT and industrial IoT (IIoT) devices, such as embedded devices, sensors, industrial PLCs, etc. The protocol is event driven and connects devices using the publish /subscribe (Pub/Sub) pattern. The sender (Publisher) and the receiver (Subscriber) communicate via Topics and are decoupled from each other. The connection between them is handled by the MQTT broker. The MQTT broker filters all incoming messages and distributes them correctly to the Subscribers.
HiveMQ wrote the book on MQTT
What is MQTT?
The MQTT protocol is the de-facto standard for IoT messaging. Standardized by OASIS and ISO, MQTT publish/subscribe protocol provides a scalable and reliable way to connect devices over the Internet. Today, MQTT is used by many companies to connect millions of devices to the Internet.
HiveMQ helps write the MQTT standard. HiveMQ is a member of the OASIS MQTT Technical Committee, and HiveMQ's Simon Johnson serves as Co-Chair of the Technical Committee and Chair of the MQTT-SN Subcommittee, directly shaping standards like MQTT-SN 2.0.
Why companies use MQTT
- It requires minimal resources since it is lightweight and efficient
- Supports bi-directional messaging between device and cloud
- Can scale to millions of connected devices
- Supports reliable message delivery through 3 QoS levels
- Works well over unreliable networks
- Security enabled, so it works with TLS and common authentication protocols
Key features
MQTT clients
MQTT broker
MQTT QoS (quality of service) levels
Persistent sessions

Retained messages

Last will and testament (LWT)
MQTT basics: What is MQTT and how does it work?
MQTT basics
Start with the fundamentals of MQTT and build from there.
Learn how MQTT works, from publish/subscribe messaging, clients, brokers, and topics to the patterns that power connected IoT and IIoT systems. Whether you're new to MQTT, building an application, connecting industrial assets, or evaluating MQTT for a larger data architecture, these resources will help you understand the fundamentals and put them into practice.
MQTT tutorial: An easy guide to getting started with MQTT
MQTT Tutorial
Introducing the MQTT protocol
MQTT Essentials Part 1
MQTT publish/subscribe architecture (pub/sub)
MQTT Essentials Part 2
MQTT client, MQTT broker, and MQTT server connection establishment explained
MQTT Essentials Part 3
Publish, subscribe & unsubscribe
MQTT Essentials Part 4
Topics & best practices
MQTT Essentials Part 5
MQTT features
MQTT is packed with features, such as Quality of Service (QoS) levels, persistent session and queuing messages, Retained Messages, etc. Get hands-on with MQTT.
MQTT vs. other IoT protocols
Which protocol is the right choice for your IoT requirements? Check out these valuable resources.
More on MQTT
MQTT packets: A comprehensive guide
Explore MQTT control packets, the core of IoT communication. Learn their structure and types to design and test MQTT-based systems.
MQTT broker comparison – Which is the best for your IoT application?
In-depth comparison of open-source Vs. commercial Vs. cloud MQTT brokers for IoT/IIoT devices and applications.
Creating highly available and ultra-scalable MQTT clusters
Learn how MQTT Broker Clusters are essential for high availability and scalability to solve the critical part of a messaging infrastructure.
MQTT topic tree & topic matching: Challenges and best practices explained
Learn how to find matching subscriptions among millions of MQTT subscribers.
MQTT over Websockets
Learn to send and receive MQTT messages directly in a browser.
A beginner's guide to MQTT brokers
Learn how to set up an MQTT broker, how to choose the right one for your IoT/IIoT use case & more with this guide.
Implementing MQTT in Java
Learn how to set up an MQTT client and a broker connection in Java.
Implementing MQTT in JavaScript
Learn how to set up an MQTT client and a broker connection in JavaScript.
Implementing MQTT in C
Learn how to set up an MQTT client and a broker connection in C.
Implementing MQTT in C Sharp
Learn how to set up an MQTT client and a broker connection in C Sharp.
Implementing MQTT in Python
Learn how to set up an MQTT client and a broker connection in Python.
15 frequently asked MQTT questions
Top 15 frequently asked questions or FAQs about MQTT protocol, such as does MQTT work with Apache Kafka, does MQTT require internet, etc.
HiveMQ vs. Mosquitto: An MQTT broker comparison
Compare HiveMQ’s scalability and clustering with Mosquitto’s lightweight design to choose the right MQTT broker for your application needs.
HiveMQ vs. AWS IoT Core: A comparative analysis for IoT messaging
Compare HiveMQ vs. AWS IoT Core on scalability, MQTT compliance, integrations, security, and vendor lock-in to choose the best IoT messaging platform.
MQTT glossary
Get to Know the Key MQTT Terminologies at a Glance
Case studies
BMW Share Now uses HiveMQ for reliable message connectivity for their car sharing application.
Mercedes-Benz uses HiveMQ to ensure quality production across 24 global factories.

Discover how Liberty Global is building their new digital media platform.

Matternet uses HiveMQ for real-time communication with medical transport drones.