Home > Blockchain >  Azure C2D message for MQTT device to subscribe to
Azure C2D message for MQTT device to subscribe to

Time:11-23

I have successfully connected two actual devices to Azure IoTHub (in the same Iot Hub) and would like the second device to receive the message that the first device sends. So, in a normal MQTT broker the second device just subscribes to that topic but enter image description here

Any ideas? I am doing all this through the portal because I am having a lot of issues with VSCode at the moment and would like to solve this C2D thing quickly.

thanks

CodePudding user response:

The second device should subscribe with a topic filter of # as per the docs. So the topic will become:

devices/secondDevice/messages/devicebound/#
  • Related