Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Python Sample

This sample demonstrates the usage of paho-mqtt python library to connect to the Solace Broker and subscribe to topics.

Prerequisites

  1. Python installed
  2. [Recommended] Install virtualenv

How to Run

  1. Setup a virtual environment virtualenv env
  2. Activate the virtual environment source env/bin/activate
  3. Install requirements pip install -r requirements.txt
  4. Run the file python covid.py

Notes

  • You can subscribe to different topics by modifying the topic array in the covid.py file