Published Aug 3, 2022
3 mins read
573 words
This blog has been marked as read.
Double Click to read more
Technology
Knowledge Sharing

Mqtt - The Messaging Protocol In Iot

Published Aug 3, 2022
3 mins read
573 words
  • The acronym of MQTT is Message Queuing Telemetry Transport. It is an open-source, lightweight standard that publishes/subscribes messaging transport protocol that is ideal for connecting remote devices.
  •  It is an OASIS and ISO standardized messaging protocol for the IoT. 
  • MQTT was developed by Dr. Andy Stanford-Clark, IBM, and Arlen Nipper in 1999.
  • The MQTT mostly consists of publisher, broker, topic, and single or multiple subscribers.
  • The main aim is to send messages from the publisher to the broker and the broker makes data available to the subscriber. MQTT requires the use of a broker as the main mediator as shown below. 
 Publish/Subscribe mechanism of MQTT protocol
  • Here, the publisher is any connected device, the data is made available by a broker to a subscriber with the authority to manage the data. 
  • MQTT is created upon TCP/IP (transmission control protocol and internet protocol)
  • MQTT transmits messages in packets.
  • In 2014, the OASIS released its MQTT 3.1.1 version, the last version of MQTT V5.0 on 7th march 2019.
  • It is easily deployable and energy-efficient for millions of devices. 
  • MQTT is the client-server based protocol that can be used as a client and broker to communicate between devices and through an application-based web or mobile app. 
  • It is a bidirectional protocol.
  • It has default encrypted URL port number 1883.

Important terms related to MQTT network

  1. Broker: It is the server that sends the data to the targetted client which is connected to the server. 
  2. Client: It is the device that is connected to the broker which sends and receives the data.
  3. Topic: It is the name that the message is given related to the client, publish or subscribe or both with the topic.
  4. Publish: Based on the topic name the client sends the data to the broker later to transmit it to the interested clients. 
  5. Subscribe: The client communicates with the broker on the topic which is focused on. When a topic is subscribed, the message is sent to the broker and distributed to subscribers of the particular topic. The client can unsubscribe so that messages can be stopped from being received from the broker for the topic. 
  6. QoS(Quality of Services): MQTT uses QoS levels in IoT to ensure confirmed delivery of messages to the receiver side even though connectivity between devices is unstable. It is the key factor that gives the client to choose the different levels of services that suits the reliability of the network and application logic. The value of the level ranges between 0-2, those values are assigned as follows:  0- at most one, 1- at least one, and lastly 2- exact one.

Where is MQTT used? 

  • MQTT is used in many industries such as automotive, manufacturing, telecommunication, etc.
  •  It is also used in IIoT (Industrial Internet of Things), in the smart home automation systems alongside cloud platforms such as Microsoft Azure, AWS, and IBM Watson. 
  • Facebook also uses MQTT as a communication protocol for its messenger and Instagram platform. Even IBM Watson uses MQTT as the main communication protocol.  
  • It is used in devices like smartphones, computers, cars, refrigerators, wearables, remote sensors, and other smart devices and machines to talk to each other and exchange information.

In this blog, the overview of the MQTT is described consisting of an introduction, facts, working,terms related to it and the applications. There are many applications and similar other protocols like MQTT in IoT.

 Hope you like the blog. Thank you for reading my blog. 

Candlemonk
IoT
MQTT
20
10
sumitsing 8/3/22, 11:09 AM
2
intellectual... very nice... i may be wrong and done many mistakes but i didn't understand your blog may be i am not enough smart to understand your blog
2
mreeduban.goswami 8/3/22, 11:34 AM
2
Very informative blog nice do write more 👍👍
2
smiling_bird 8/3/22, 4:06 PM
1
Nice blog.. keep it up. Read and like my blogs too.
1
martin.d 8/4/22, 9:00 AM
1
Good explanation and easy to understand
1
thulasiram.ravi 8/7/22, 1:35 AM
1
Good one
1
anu_07 8/7/22, 7:52 AM
1
Your blogs are quite helpful for those who want to understand technology better 👍. Do write more blogs Pls read my recent blogs too
1
nii99_99 8/10/22, 7:37 AM
1
Good to know!
1
richa.vedpathak 8/25/22, 7:25 AM
Thanks for reading, commenting, appreciating, and supporting. I will surely read your blogs.
sapna.bhandari 8/27/22, 8:16 AM
1
Nice please read mine too
1
m.cube 9/3/22, 4:06 AM
1
Very well written📝 keep going👍
1

Candlemonk | Earn By Blogging | The Bloggers Social Network | Gamified Blogging Platform

Candlemonk is a reward-driven, gamified writing and blogging platform. Blog your ideas, thoughts, knowledge and stories. Candlemonk takes your words to a bigger audience around the globe, builds a follower base for you and aids in getting the recognition and appreciation you deserve. Monetize your words and earn from your passion to write.