Mosquitto

Use Case: Predictive maintainance ..

Use Case - Logistics

Logistics

Link to Mosquitto documentation

Deploys an insecure mosquitto container on localhost:1883

  1. Copy over the required files.

cd
mkdir -p ~/Streaming/Mosquitto && cd "$_"
cp -R ~/Workshop--Data-Integration/Labs/'Module 7 - Workflows'/'Streaming Data'/MQTT/* .
  1. To deploy the 'mosquitto' container.

cd
cd ~/Streaming/Mosquitto/scripts
docker compose up -d
Mosquitto
  1. Check the container has been successfully deployed. Log into Portainer.

Link to Portainer123

Username

admin

Password

Portainer123

mosquitto container

MQTT Explorer

MQTT Explorer is a comprehensive MQTT client that provides a structured overview of your MQTT topics.

MQTT Explorer has already been installed and configured.

Link to MQTT Explorer
  1. Install MQTTExplorer.

cd
snap install mqtt-explorer
  1. Click on the MQTT Explorer button in the taskbar.

  2. Enter the following connection details:

Name

mosquitto

Protocol

mqtt://

Host

localhost

Port

1883

MQTT Connection
  1. Click save & Connect

  2. You can test publishing a message to the broker.

Publish test message to Topic: Test

The message will appear at the bottom..

➡️ Next: MQTT Use Case using PDI

Last updated

Was this helpful?