Device Discovery in MQTT: Using Retained Messages as a Service Registry

When you have some number of IoT devices connected to an MQTT broker, one of the major concerns we had is - how do we know what devices came online, what topics they publish to, and what are its other params (device details). Most solutions involve maintaining a separate device registry database. But the idea here is to use MQTT broker itself as a device registry. In typical MQTT deployments, you need to maintain device inventories separately: a database to store device metadata. Still, at this point, the path to write this info to the database write/read has to be created. ...

October 20, 2025 · 5 min · Ben Shaji

Coordinate Mapping Object Detection to Thermal Sensor Data with NumPy

Back in 2022 I worked on a project with an ESP32 board with two sensors - an OV2640 optical camera and an MLX90640 low-resolution thermal sensor. The camera will give an MJPEG stream, and the thermal sensor returned a 32 x 24 array of temperatures on every HTTP request. On the server side, a Python app read the stream with OpenCV, ran a TensorFlow Lite object detection model on each frame, and showed the result in a small Flask UI. See the YouTube video i uploaded ...

December 15, 2023 · 8 min · Ben Shaji