code:dqmh:hse-mqtt:getting-started
02 Getting Started
Use the API Tester for a functional test.
-
An MQTT broker must be running on the network. One open source (EPL/EDL licensed) MQTT broker is Eclipse Mosquitto.
-
After the module has been started, call the
Set Client Parameters
andSet Connection Parameters
request to hand overServer Address
,Username
andPassword
-
Now call the
Start Client
and theConnect
requests to establish the connection to the boker -
Finally, you are ready to use the
Publish
andSubscribe
requests to send and receive data.
Subscribe to all topics with a different tool to see the published data.
You can also start multiple clones, one subscribing the topic of the other, and see the data from the publisher arriving at the subscriber.
-
Start, configure and connect the publisher as mentioned above
-
Start, configure and connect the subscriber as mentioned above
-
write the same topic to
Topic
andSubscribe Topic
and add some string in theData
control -
Select module ID of the subscriber and click on
Subscribe
-
Select module ID of the publisher and click on
Publish
code/dqmh/hse-mqtt/getting-started.txt · Last modified: 2023/02/13 16:38 by alexander.elbert