Controlling Devices Using MQTT and Python

MQTT can not only be used for collecting sensor data it can also be used for controlling devices. In this mini workshop we will be creating a device in Python that can be controlled using MQTT. Although our sample device is a simple sensor I have used the same idea and similar code to add MQTT control to Python command line control scripts.

Continue reading