Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 499 Bytes

README.md

File metadata and controls

19 lines (17 loc) · 499 Bytes

MQTT_Python

An simple publisher and subscriber examples using Python and Mosquitto.

INSTALL

sudo apt install mosquitto* -y 
sudo apt install python-pip python3-pip -y
sudo pip install paho-mqtt
sudo pip3 install paho-mqtt
echo "MOSQUITTO IS READY TO BE USED"

RUN

git clone https://github.com/BrunoGeorgevich/MQTT_Python &&
cd MQTT_Python &&
echo "TO RUN THE SUBSCRIBER TYPE: python mqtt_subscriber.py" &&
echo "TO RUN THE PUBLISHER TYPE:  python mqtt_publisher.py"