Skip to content

nam2297ptit/MQTT-Database

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Guide


Requirements

  • 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“

Usage

Run the files in turn below :

  1. Init_Database.py : Creat “sensor.db” sqlite database file with Tables Temperature and Humidity.
  2. Publish.py : Publishing random values to Broker.
  3. Subscribe.py : Subscribe to topics on Broker.
  4. Get_Data_to_DB.py : Get values to “sensor.db” sqlite database

Having problems?

Please contact for me _[email protected]

About

Get values sensor by MQTT to Database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages