bibhuti bhushan
bibhuti bhushan

Reputation: 21

Not receiving message for subcribed topic from Azure IoT MQTT broker

Please, help me to resolve this issue, I have tried all the options... i used MqttClient client to subcribed iot hub mqtt broker using topic

devices/t2c-171bdd65-407d-4de9-992b-36cee0914b3f/messages/devicebound/#

but I wasn't able to receive any callback... I am running this application from my local machine and connecting to Azure IoT hub MQTT broker. well, I am able to publish message to IoT hub, I can confirm this because IoT hub message count is increasing & device explorer running on my local machine is displaying message in monitor mode.

Upvotes: 2

Views: 832

Answers (1)

Jackie
Jackie

Reputation: 2030

I'm supposing you're using M2MQTT nuget package for MQTT client.

I have some sample code that proves working on my local PC and my Azure IoT Hub. You can find it in https://github.com/ghjackie/AzureIoTDemo

You need to follow the tutorial from here to modify the deviceId, hostName, etc...

Upvotes: 2

Related Questions