Share via

I want to send C2D messages to Azure IOT device

Rani H 1 Reputation point
2020-11-02T10:40:04.807+00:00

Using Visual studio code or Azure iot explorer i want to send C2D message. Now when i am trying to send message its giving error: [C2DMessage] AMQP Transport: Could not connect.
How to set protocol as MQTT and send C2D message ?

Azure IoT Hub
Azure IoT Hub

An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.


1 answer

Sort by: Most helpful
  1. AshokPeddakotla-MSFT 36,021 Reputation points Moderator
    2020-11-03T08:59:47.793+00:00

    @Rani H Welcome to Q&A forum!
    You haven't mentioned which SDK you are using and what documentation you have followed for the steps.
    Please share the complete details/steps which led to this error message.

    Incase if you haven't checked earlier, please refer Send messages from the cloud to your device with IoT Hub (.NET) and let us know if it helps.

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.