An simple publisher and subscriber examples using Python and Mosquitto.
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"
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"