amplifier
amplifier

Reputation: 1833

Azure topic and sending message over MQTT

Is it possible to send messages to azure to any custom topic via mqtt. All example that I've found so far work with standard topics

'devices/' + hubName + '/messages/events/'
'devices/' + hubName + '/messages/devicebound/#'

Btw, I tried to send/subscribe on the topic/subscription above with MQTT.fx application and never received messages, although the connection was successful.

Upvotes: 0

Views: 3424

Answers (1)

Michael Xu
Michael Xu

Reputation: 4432

The topic filter of devices/{device_id}/messages/devicebound/# is to subscribe receiving message from IoT Hub(Cloud-To-Device message), it think you need to understand the difference about device-to-cloud message and cloud-to-device message from here. The topic of devices/{device_id}/messages/events/ is for sending a device-to-cloud message from device.

You can use Device Explorer to test this issue. When you send a message to device with the tool, MQTT.fx will receive the message.

enter image description here

Upvotes: 2

Related Questions