Presentation On
Introduction to MQTT Protocol
Presenter : Abhishek Ladage.
Project Name : Sensor Integration (NEON).
Contents:-
● What is MQTT ..?
● Components of MQTT
● NEON-MQTT Architecture
● MQTT Block Diagram
● Publish/Subscribe Model
● Quality of Service (QoS)
● Applications
● Conclusion
What is MQTT..?
● MQTT - Message Queuing Telemetry Transport Protocol.
● Designed for M2M (machine-to-machine) and IOT (Internet of Things) connectivity
protocol.
● Works on publish-subscribe messaging protocol uses TCP as its transport layer (App.
Layer).
● Lightweight protocol built for low-bandwidth, high-latency networks.
Components of MQTT :
● Broker:
- Intermediate between Publisher and Subscriber.
- It receives messages from publishers, filters them by topic, and send to appropriate
matching subscribers.(Client who interested in that Topic)
MQTT Broker : Mosquitto, HiveMQ, NanoMQ, [Link]
Eg. tcp://[Link]:1883 (1883 - Default Unencrypted Port, 8883 -TLS/SSL
Encrypted )
Components of MQTT :
● Topic :
- Topic is string act as Hierarchical, like a file path for message channel.
- Used to route messages between publishers and subscribers.
- Wildcard method :-
- Single Level (+)
- Multi Level (#)
Eg. : home/room/temperature
● Message :
- Message is the actual data (payload) sent by a publisher to a topic.
- Further broker will sends to all subscribers of that topic.
- Message contains : Topic, Payload,QoS value (0/1/2),Retain (true/false).
● Client : (Publisher/ Subscriber)
- Client can send messages to the broker (publish) and receive messages from the
broker (subscribe).
- During client sending message to broker (publish) it should specify topic, which can
be used to further process.
MQTT NEON Architecture
● Microcontroller reads sensor data —>(Temperature, Humidity etc)
● Microcontroller publishes data to MQTT broker —>(Topic + Payload)
● ThingsBoard receives the data —> (Subscribes to external MQTT broker)
● ThingsBoard stores and visualizes data —>(Display data)
MQTT Block Diagram
Publish - Subscribe Model
Quality of Service (QoS)
● QoS stands for Quality of Service,
● Defines the level of guarantee for message delivery between the sender (publisher)
and the receiver (subscriber).
● MQTT supports three QoS levels :
○ QoS 0 – At most once (Fire and Forget) —> No ACK, message may be lost.
○ QoS 1 – At least once —> Message is resent until ack received (can duplicate).
○ QoS 2 – Exactly once —> Follows 4 way handshake no duplication. (PUBLISH →
PUBREC → PUBREL → PUBCOMP)
Eg. [Link](“home/temperature”, payload = “26”, qos =1,retain=1)
Applications
● Smart Home Automation
Use Case: Communication between smart devices
● Industrial Automation (IIoT)
Use Case: Monitor and control factory equipment
● Healthcare & Medical Devices
Use Case: Remote health monitoring
● Security & Surveillance
Use Case: Alert systems and monitoring
Conclusion
MQTT is the ideal communication protocol for the NEON project using the SIM
A7672S microprocessor and thingsboard server due to its lightweight, low-
power, scalable and network-efficient design.
● Optimized for Low-Bandwidth Cellular Networks ( 2G /3G/4G LTE connectivity)
● Power Efficiency for Battery-Powered device( uses battery)
● Easy Integration with Platforms like ThingsBoard (data visualization)
● Reliable Delivery with QoS (QoS 1 or 2 to guarantee delivery)
Thank You…