Taking MQTT and NodeMcu to IOT: Communication in Internet of Things

Monika Kashyap, Vidushi Sharma, Neeti Gupta

Procedia Computer Science · 2018 · 149 citations · 4 references

DOIFull text

Open access

Concepts

TL;DR

The Internet of Things connects micro‑controller‑based sensors and actuators over the internet, and the MQTT protocol enables identity‑agnostic data exchange among them. This paper proposes alternative service models for IoT communication. The authors compare a serial‑USB model with an MQTT model that employs an ESP8266 Wi‑Fi module, using a broker to route published messages to subscribers based on topics.

Abstract

Internet of Things (IoT) allow connection among devices using internet with the ability to gather and exchange data. These devices are usually attached with micro-controllers like Arduino, sensors, actuators and internet connectivity. In this context, Message Queuing Telemetry Transport protocol (MQTT) plays an important role to exchange the data or information between the devices in IoT without knowing the identities of each other. This paper presents different service models for communication in Internet of Things(IoT). Model A presents use of serial USB as transmission medium while Model B uses the Message Queuing Telemetry Transport protocol (MQTT) which deploy a Wi-Fi module (ESP8266-12) to connect the system to internet. For communication, concept of publisher and subscriber is used. Messages are published or subscribed with the help of a broker or server. This agent is in charge of dispersing messages to intent clients depending on the choice of the topic of a message. Broker in MQTT is also called server. Some brokers used in MQTT are: -Mosquitto, Adafruit, hiveMQ.

References

4