Conference
Meet EMQ at SPS 2026: Real-Time Data for Industrial AI →

Blog - MQTT Tutorials - Page 3

Back

Category: MQTT Tutorials

Explore the blog

MQTT 5.0 Packet Explained 05: DISCONNECT

In MQTT, both the client and the server can send a DISCONNECT packet to the other party before disconnecting the network connection, indicating the reason for the connection closure.

· EMQX TeamMQTT

MQTT 5.0 Packet Explained 04: PINGREQ & PINGRESP

MQTT has a type of packet used to simulate heartbeats between the client and server to maintain the connection. They are PINGREQ and PINGRESP packets, which we often call heartbeat packets.

· EMQX TeamMQTT

MQTT 5.0 Packet Explained 03: SUBSCRIBE & UNSUBSCRIBE

In MQTT, the SUBSCRIBE packet is used to initiate a subscription request, while the SUBACK packet is used to return the subscription result. The UNSUBSCRIBE and UNSUBACK packets are used when unsubscribing.

· EMQX TeamMQTT

MQTT 5.0 Packet Explained 02: PUBLISH & PUBACK

This blog will introduces the PUBLISH packet used to deliver application messages in MQTT, and its response packets.

· EMQX TeamMQTT

MQTT 5.0 Packet Explained 01: CONNECT & CONNACK

MQTT connection requires CONNECT and CONNACK packets. CONNECT initiates the request and server responds with CONNACK indicating connection result.

· EMQX TeamMQTT

Explore New Features of MQTT 5.0: Usage Examples Based on MQTTX CLI

This blog will introduce each new feature introduced in 5.0 in turn, and use the MQTTX CLI tool to demonstrate how we can use these features in EMQX.

· MQTTX TeamProduct

MQTT vs AMQP for IoT Communications: Head to Head

MQTT (Message Queuing Telemetry Transport), is a lightweight publish/subscribe messaging protocol. AMQP (Advanced Message Queuing Protocol), is a protocol for distributed systems that supports a range of messaging patterns

· EMQX TeamMQTT

MQTT Control Packets: A Beginner's Guide

As the smallest data unit in MQTT, MQTT control packets facilitate tasks like subscribing to topics and publishing messages between clients and servers.

· EMQX TeamMQTT

MQTT Maximum Packet Size Explained and Example | MQTT 5 Features

Introduce Maximum Packet Size in MQTT and explore how to ensure the sent MQTT packets are always smaller than the Maximum Packet Size.

· EMQX TeamMQTT

MQTT Subscription Identifier Explained and Example | MQTT 5 Features

Explain what is Subscription Identifier in MQTT and how it works. Demonstrate how to set a Subscription Identifier for subscription through an example.

· EMQX TeamMQTT

What Is MQTT and Why Is It the Best Protocol for IoT?

MQTT is a lightweight publish/subscribe messaging protocol that provides reliable messaging services to IoT devices with minimal code and bandwidth.

· EMQX TeamMQTT

MQTT Reason Code Introduction and Quick Reference

Deep dive into MQTT 5 reason coded: elevate your communication with advanced MQTT features. Read more!

· EMQX TeamMQTT