Skip to content

alptbz/mqttdemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python MQTT example

Example application using MQTT in Python.

Requirements

  • Python3 > 3.9.*

Getting started

  • Clone the repository
git clone https://github.com/alptbz/mqttdemo
  • Change into repository
cd mqttdemo
  • Create venv
python -m venv env
  • Activate enviroment
# Linux:
source env/bin/activate

# Windows (PowerShell):
.\env\Scripts\activate

# Windows (bash):
source env/Scripts/activate
  • Install requirements
python -m pip install -r requirements.txt
  • Create own config.py and insert credentials and connection information
cp config.template.py config.py
vim config.py
  • Run
python main.py

Notes

  • Use python3 instead of python if you're using Linux

Links

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages