Reading this article will provide basis information to set MQTT related applications. This will be required to run the test programs during unit-tests.

Step-by-step guide

StepDescriptionReference
1

Install Paho-MQTT library.

On Windows / Linux:

  • If pip is not up-to-date, run python -m pip install --upgrade pip or python -m pip install --upgrade pip setuptools wheel
  • Install library with pip install --upgrade paho-mqtt

2

Install mosquitto server.

On Windows:

  • Use installer (32/64 bit) from mosquitto.org
  • Use service configuration to control whether the server should start automatically or not

On Linux (Debian / Pi):

  • Use debian repositories linked from mosquitto.org download page
  • Start server from shell

On Linux (Ubuntu):

  • sudo apt-add-repository ppa:mosquitto-dev/mosquitto-ppa
  • sudo apt-get update
  • Start server from shell

Detailed documentation is accessible via mosquitto.org. Read carefully the mosquitto configuration docs to understand security issues.

mosquitto.org










3

Install mqtt-explorer.

On Windows:

  • Use installer from mqtt-exploer.com. There is also a portable version running on a memory stick.

On Linux:

  • Either use snap to install package,
  • or - if you do not like to have snap on your system, use runable app-image.
mqtt-explorer.com