Unable to send data to Azure IOT HUB

Pandey, Yogesh 21 Reputation points
2022-01-27T07:08:16.737+00:00

Hi,

I am following this tutorial to run the sample for Azure SDK : https://learn.microsoft.com/en-us/azure/iot-develop/quickstart-send-telemetry-iot-hub?pivots=programming-language-python#prerequisites

But I am running into this issue while running the sample.
168817-image.png

Can someone please help me out here ?

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,136 questions
Azure IoT SDK
Azure IoT SDK
An Azure software development kit that facilitates building applications that connect to Azure IoT services.
208 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sander van de Velde 29,616 Reputation points MVP
    2022-01-27T10:58:46.597+00:00

    Hello @Pandey, Yogesh ,

    this could either be a problem with the MQTT traffic or some coding issue.

    Is MQTT traffic allowed in your network or are extra proxy settings needed (perhaps on a corporate network)?

    Otherwise, did you check this 'most simple' demonstrations first?

    Recently, I checked these Python sample code from Microsoft, and I was able to both send telemetry and receive commands using those examples.

    I suggest checking this out first before you switch over to the more elaborate Plug and Play example.

    The Python script I constructed with the full solution is available on GitHub. It's a combination of those SDK samples. More background information is seen here.

    2 people found this answer helpful.