Understanding MQTT and IoT

The Hardwaron Zone
2 min readApr 25, 2019

--

There are many projects based on IoT available on the internet.In today’s blog you will learn about the working of the IoT and MQTT.

IoT(Internet of Things):

The IoT or Internet of Things as we know is the connection of many devices and its connectivity with internet,so we can receive and transmit data through internet.

MQTT(Message Queuing Telemetry Transport):

MQTT stands for Message Queuing Telemetry Transport.The MQTT broker is the server which helps us to transmit and receive data.The MQTT keeps the record of who has subscribed to whom and acts as the middle man.We have to connect our Node MCU or Wemos to internet and then when we use google assistant or google home we send a particular data to the MQTT broker.Our board is also connected to the broker through the internet.So when the data goes to the MQTT broker ,the board understands that the data is changed and according to the data received it acts.For eg:If the data received was ‘ON’ then the board will turn the light or led on and if the data was ‘OFF’ then the board will turn the light or led off.All this things can be set by coding the board.

There are many MQTT brokers you can use like Adafruit.io.To make custom commands for google assistant like ‘turn on the light’ and send data to the broker we can use app like IFTTT(IF This Then That)

You can also refer to my video:

If you want to make an IoT based Project then:

If you want to learn more about Arduino,Raspberry Pi and other electronic stuff then head over to my channel:

https://www.youtube.com/channel/UCv2hTdClW8560n89OZ6cazA?view_as=subscriber

--

--