MQTT (Message Queuing Telemetry Transport) is a simple messaging protocol often used in IoT applications. The protocol is based on a publish-subscribe system where both types of devices that publish and subscribe MQTT messages are called MQTT clients. The exchange of messages between the publishers and subscribers is done with the help of a broker,…