This document describes the source code for the Paho MQTT python client library.
The MQTT protocol is a machine-to-machine (M2M)/"Internet of Things" connectivity protocol.
sudo apt-get install python-stdeb
sudo apt install python-pip
sudo pip install paho-mqtt
Here is very simple example
- edit the publisher.py
- modify the hostname to your pc's ip address
- execute the publisher.py on terminal
$ python publisher.py
- execute the subscriber.py on another terminal
$ python subscriber.py
publisher_dexter_1101HA.py
subscriber_dexter_1101HA.py