Examples for Node-RED
117/258
The example for copying
[{"id":"4a22a8ea.115788","type":"mqtt
in","z":"6b03759e.b5eb4c","name":"MySubscribingNode","topic":"Timest
amp1","qos":"1","broker":"55ba4653.6e07b8","x":211,"y":512,"wires":
[["2785278d.2d5bc8"]]},
{"id":"2785278d.2d5bc8","type":"debug","z":"6b03759e.b5eb4c","name":
"","active":true,"console":"false","complete":"false","x":402,"y":51
2,"wires":[]},{"id":"55ba4653.6e07b8","type":"mqtt-
broker","z":"6b03759e.b5eb4c","broker":"localhost","port":"1883","cl
ientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleans
ession":true,"willTopic":"","willQos":"0","willPayload":"","birthTop
ic":"","birthQos":"0","birthPayload":""}]
Testing the flow and displaying messages
Ø
Click the tab
Debug
in the sidebar.
Ø
Use a device that is externally connected to the Edge Gateway to
execute a
publish
with MQTT on topic Timestamp1.
- or -
Copy and use the example MQTT output node (see section
ð
The Debug node displays messages of the MQTT input node as soon
as the topic Timestamp1 changes.
Edge Gateway | NIOT-E-TPI51-EN-RE (Connect)
DOC170502UM04EN | Revision 4 | English | 2018-08 | Released | Public
© Hilscher 2017 – 2018