azuremqttazure-eventgrid

How to send a cloud to device message using Event Grid MQTT Broker?


I need to publish a message to a MQTT topic which my device has subscribed to from an application using the Event Grid MQTT Broker. Is this even possible or should I create a special MQTT client for publishing?

I couldn't find any documentation for cloud to device communication. I tried to create an EventGrid Topic for publishing but I did't manage to route the message to the EventGrid MQTT Broker so my device could receive it.


Solution

  • Yes, it is possible to send a cloud-to-device message using the Event Grid MQTT Broker, but it requires proper configuration of MQTT topics and permissions. Here's a general approach:

    enter image description here

    Refer this doc for Publishing and subscribing to MQTT messages on Event Grid Namespace