Skip to content

Publish outbound messages

To publish outbound messages:

  1. Subscribe to the outbound topic devices/{clientId}/messages/devicebound/# in the device.

  2. Publish outbound messages using the Outbound messages API. Expiry can be set for each outbound message.

  1. The device will receive the message in the below topic with application properties set in the request and other system properties appended to the topic.

     devices/{clientId}/messages/devicebound/%24.exp=2023-03-10T11%3A31%3A49.3830000Z&%24.mid=b9c829d2-66e4-4302-b55e-8bc666c3d173&%24.to=%2Fdevices%2F{clientId}%2Fmessages%2FdeviceBound&iothub-ack=full&battery_on=True&fuel_level=15
  2. Feedback status of the outbound message can be monitored using Get Outbound Message Status API. The feedback status can also be consumed from the lifecycle delivery endpoint.

    !!!Note * For Platform events, a property bag with key as platform-event is required.