The MQTT Client is used to read the values on the MQTT Broker. This Example uses MQTTX:
- Download MQTTX alternatively MQTT-Explorer or mqttMultimeter
- Install and start MQTTX.
- Create new connection via + button with these parameters.
- Name: "OPCUA Client"
- Host: "mqtt://" "127.0.0.1"
- Port: 1883
- Press Button "Connect".
- Press Button "New Subscription".
- Topic: "umati/#"
- Press "Confirm"
Deploying a MQTT Broker locally. Example with Eclipse Mosquitto:
-
Check for a running Mosquitto version, if you installed previously
-
Install Mosquitto, with local admin privileges
-
Change the content of
mosquitto.conf
(Use any text editor) to:- https://github.com/umati/infrastructure-Dashboard/blob/main/config-templates/mosquitto/mosquitto.conf.jinja2
- "{{MQTT_WS_PORT}}" change for "1884"
-
Start
mosquitto.exe
. -
A console windows appears without any output.
If you want to run a MQTT broker as container image, please make sure you have a container runtime link Docker Desktop installed.
- Execute
docker run -it -p 1883:1883 eclipse-mosquitto:2.0.15 mosquitto -c /mosquitto-no-auth.conf
This starts a unauthenticated MQTT broker on your localhost.