Practical Python Programming for IoT

MidSemester Test Submission
Controlling LEDs using MQTT and WebSocket from HiveMQ

  • requirements.txt - Python dependencies

  • mqtt_led.py - Paho MQTT Subscriber to control a LED

  • mosquitto_pyiot.conf - Mosquitto MQTT Broker configuration file to enable Web Sockets and Web Server

  • mosquitto_www - Folder containing HTML and JavaScript files for MQTT Web Page client

  • mosquitto_www/index.html - MQTT Web Page Client to control LED Using WebSockets

  • mosquitto_www/*.js - JavaScript dependencies as used in index.html