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 ParametersandSet Connection Parametersrequest to hand overServer Address,UsernameandPassword -
Now call the
Start Clientand theConnectrequests to establish the connection to the boker -
Finally, you are ready to use the
PublishandSubscriberequests 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
TopicandSubscribe Topicand add some string in theDatacontrol -
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


