Unit IV(IOT) – MQTT, CoAP, XMPP, AMQP
Unit IV – MQTT, CoAP, XMPP, AMQP (Simple English Notes) 1. MQTT MQTT (Message Queuing Telemetry Transport) is a lightweight messaging protocol used in IoT for communication between devices. It works on a Publish–Subscribe model and requires low bandwidth and low power. Features of MQTT: Lightweight protocol Low power consumption Uses small amount of data Reliable communication Supports many IoT devices Works over TCP/IP Uses: Smart homes Healthcare devices Smart agriculture Industrial automation 2. MQTT Methods and Components MQTT Components 1. Publisher Device that sends data Example: Temperature sensor 2. Subscriber Device that receives data 3. Broker Main controller of MQTT Receives and distributes messages 4. Topic Channel where data is sent Example: Temperature sensor publishes on: home/room1/temperature MQTT Methods CONNECT Connects client to broker PUBLISH Sends message SUBSCRIBE Receives topic me...