Implementation of MQTT Protocol in Health Care Based on IoT Systems: A Study
DOI:
https://doi.org/10.32985/ijeces.12.4.5Keywords:
IoT, MQTT, Publish/Subscribe, Broker, QoS, MLX90614, NodeMCU ESP8266Abstract
Internet of things IoT systems have become one of the most promising technologies in all fields. Data transmission is one of the important aspects, and the tendency to messaging protocols is an important aspect of IoT systems. One of these most important protocols is MQTT. This protocol depends on the Publish/Subscribe model, and it is a lightweight protocol. Reliability, simplicity, quality of service levels, and being Resource-constrained make MQTT common in the IoT industry. This paper designed an IoT device that consists of the sensor MLX 90614 non-contact IR Temperature connected to a development board (Node MCU ESP8266). A person's temperature is one of the important vital signs. This system measures human temperature values and transmits the measured values to the Mosquitto broker by using the MQTT protocol in real-time. The technology used is Wi-Fi. The person or the doctor can read the patient’s temperature remotely through a program (Flutter Android Client) representing the subscriber. Also, MQTT protocol control packets of the system were analyzed using Wireshark. The three levels of QoS were used in subscriber clients to compare the throughput. The results indicate that QoS2 is more reliable and offers more throughput but more delay. The results also show that the average round trip time (RTT) of the MQTT protocol is five milliseconds which means optimal performance for IoT applications.