Create free account hivemq.com
Using paho-mqtt Python library
Fork and Clone the project
git clone <your repo>
Mac/Linux
cd python_mqtt_examples/python_mqtt_examples
Windows
cd python_mqtt_examples\python_mqtt_examples
Rename the .env_template to .env
Update the values
Update Repo
poetry shell
poetry update
Run Publisher
poetry run python publisher.py
Run Subscriber
poetry run python subscriber.py
Add missing libraries (example)
poetry add paho-mqtt
poetry add python-dotenv