BACK TO LABORATORY
EXPERIMENT 013

MQTT COMMUNICATION

IoT / Networking
ONGOING

OVERVIEW

Setting up a local Mosquitto MQTT broker on a Raspberry Pi and testing QoS 0 vs QoS 1 latency across a saturated local network.

RESULT

Average latency under load is 15ms for QoS 0 and 42ms for QoS 1. Handshake overhead significantly impacts low-power devices awake time.

STACK

MosquittoRaspberry PiPythonPaho MQTT

SOURCE

GitHub Repository

EVIDENCE

[ RASPBERRY PI BROKER SETUP ]
[ SERIAL LOG ]
[09:12:00.001]> mosquitto -c /etc/mosquitto.conf
[09:12:00.050]> IPv4 listen on port 1883
[09:12:45.220]> New client connected: esp32_node_01
[09:12:45.300]> Subscribe topic /home/sensors QoS 1
[09:13:02.100]> PUBLISH /home/sensors {"temp":24.5}
[09:13:02.115]> PUBACK received (15ms)
[09:13:02.112]>