Installing paho-mqtt for Python
The Eclipse Paho project provides an open source client implementation of MQTT. The project includes a Python client, also known as the Paho Python Client or Eclipse Paho MQTT Python client library. This Python client has been contributed from the Mosquitto project and was originally known as the Mosquitto Python client. The following is the web page for the Eclipse Paho project: http://www.eclipse.org/paho. The following is the web page for the Eclipse Paho MQTT Python client library version 1.3.1, that is, the paho-mqtt
module version 1.3.1: https://pypi.python.org/pypi/paho-mqtt/1.3.1.
Note
We can use paho-mqtt
in many modern IoT boards that support Python 3.x or greater. We just need to make sure that pip
is installed to make it easier to install paho-mqtt
. You can use your development computer to run the examples or any of the afore mentioned boards.
Make sure that the virtual environment we created in the previous steps is activated before moving forward...