This sample demonstrates the usage of paho-mqtt python library to connect to the Solace Broker and subscribe to topics.
- Python installed
- [Recommended] Install virtualenv
- Setup a virtual environment
virtualenv env
- Activate the virtual environment
source env/bin/activate
- Install requirements
pip install -r requirements.txt
- Run the file
python covid.py
- You can subscribe to different topics by modifying the
topic
array in the covid.py file