โ Internet of Things (IoT) learning pathInternet of Things (IoT) ยท Module 5 of 10
IoT protocols: MQTT and HTTP
Send device data with lightweight protocols.
๐ Key ideas
- MQTT uses publish/subscribe via a broker.
- Topics organise messages: farm/field1/moisture.
- QoS levels 0, 1, 2 control delivery guarantees.
- HTTP/REST is simple but heavier.
- CoAP is a lightweight REST-like protocol over UDP.
๐ก Real-life example: MQTT is a radio station: devices publish on channels (topics) and subscribers tune in.
MQTTLightweight publish/subscribe protocol
BrokerServer routing MQTT messages
TopicMessage channel name
QoSQuality of Service level