Reputation: 1833
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
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.
Upvotes: 2