Lab 32. Publish/Subcribe with MQTT

Using Node-RED

On your local Node-RED instance, build the following flow. Make sure the "inject" node injects a JSON string.

  • how did you configure the two MQTT nodes?

Answer 1:

  • Make sure you see the data published by all participants.

Using your phone

On your phone, look for an MQTT client application. On the iPhone, you can use application "MQTTool"

  • subscribe to the common topic, verify you receive all notifications

  • publish on the common topic, verify you can see each other's message

  • what type of OS do you have on your phone, and what client did you end up using?

Answer 2:

Challenge

  • publish a message with your name in it on the MQTT broker