MQTT Basic Example with MQTT test server

MQTT simple and basic example with test mqtt server and port.

injectdebugmqtt outmqtt inmqtt-broker
Flow 1
[{"id":"3297959a.e7fe7a","type":"inject","z":"e9540138.5f5c2","name":"","topic":"Topic","payload":"Hello from Injector through mqtt","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":217,"y":136,"wires":[["d56cce71.5286a"]]},{"id":"99bf04c.196c7f8","type":"debug","z":"e9540138.5f5c2","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":453,"y":199,"wires":[]},{"id":"d56cce71.5286a","type":"mqtt out","z":"e9540138.5f5c2","name":"","topic":"test","qos":"","retain":"","broker":"4c4d79bc.7bd778","x":447,"y":136,"wires":[]},{"id":"a326a57d.bccd28","type":"mqtt in","z":"e9540138.5f5c2","name":"","topic":"test","qos":"2","datatype":"auto","broker":"4c4d79bc.7bd778","x":193,"y":199,"wires":[["99bf04c.196c7f8"]]},{"id":"4c4d79bc.7bd778","type":"mqtt-broker","z":"e9540138.5f5c2","name":"","broker":"https://test.mosquitto.org","port":"1883","clientid":"test","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]

Flow Info

Created 5 years, 4 months ago
Rating: not yet rated

Owner

Actions

Node Types

Core
  • debug (x1)
  • inject (x1)
  • mqtt in (x1)
  • mqtt out (x1)
  • mqtt-broker (x1)

Tags

  • mqtt
  • basic
  • injector
  • debug
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option