diff --git a/README.md b/README.md index b8160b95a25d355f9ec55b47108ecfe3a0364c69..cc2700f2aec71f8eeeb4be7ee1d912f982fda05e 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,8 @@ pip install --extra-index-url https://package-read:gkYP4xrm2PxicUbW1wra@git-ce.r ### Publish messages ```python +from wzl import mqtt + # username and password required to connect to the broker MQTT_USER = "" MQTT_PASSWORD = "" @@ -42,6 +44,8 @@ client.publish(MQTT_USER + "/channel-001", message.encode("utf-8")) ### Subscribe to topics and receive messages ```python +from wzl import mqtt + # username and password required to connect to the broker MQTT_USER = "" MQTT_PASSWORD = "" diff --git a/requirements.txt b/requirements.txt index 62edbcac908dbe41daf24467c92cf24a77ded286..eb5e41dd416ca6dfd4007d898880ad1595cd127b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ +jinja2<=3.1python sphinx==3.5.3 sphinx-rtd-theme==0.5.1 paho-mqtt==1.5.1 \ No newline at end of file