- Python3+
- SQLite – included with Python, no need to install
- Python pip – for installing packages
- Paho MQTT Client – Install it with pip command “pip install paho–mqtt"
- MQTT Broker – If you don’t have your own, use “iot.eclipse.org“
Run the files in turn below :
- Init_Database.py : Creat “sensor.db” sqlite database file with Tables Temperature and Humidity.
- Publish.py : Publishing random values to Broker.
- Subscribe.py : Subscribe to topics on Broker.
- Get_Data_to_DB.py : Get values to “sensor.db” sqlite database
Please contact for me _[email protected]