How to receiving cloud to device (C2D) message via api?

Madanraj A 40 Reputation points
2023-01-12T13:09:53.3933333+00:00

MicrosoftTeams-image (60)

like above this Azure portal how to get via api? Message receiving cloud to device.

Azure Sphere
Azure Sphere
An Azure internet of things security solution including hardware, operating system, and cloud components.
170 questions
Azure IoT
Azure IoT
A category of Azure services for internet of things devices.
407 questions
{count} votes

Accepted answer
  1. Matthijs van der Veer 4,376 Reputation points MVP
    2023-01-13T08:33:47.9733333+00:00

    You can send Cloud-to-Device messages through the various SDK's. You can check a .NET example here

    This SDK is also available in Python, Node.js, Java and iOS.

    There does not seem to be a REST API to do the same, so the SDK is the way to go.

    2 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Surbhi 596 Reputation points Microsoft Employee
    2023-01-13T06:39:30.8766667+00:00

    Hi Madanraj,

    Commands supported via HTTP from Cloud to Device

    [https://zcusa.951200.xyz/en-us/rest/api/iothub/service/cloud-to-device-messages

    Other ways to send the message from Cloud to device are -

    [https://zcusa.951200.xyz/en-us/azure/iot-hub/iot-hub-csharp-csharp-c2d

    [https://zcusa.951200.xyz/en-us/azure/iot-hub/iot-hub-python-python-c2d

    [https://zcusa.951200.xyz/en-us/azure/iot-hub/iot-hub-node-node-c2d

    [https://zcusa.951200.xyz/en-us/azure/iot-hub/iot-hub-java-java-c2d

    [https://zcusa.951200.xyz/en-us/azure/iot-hub/iot-hub-ios-swift-c2d


Your answer

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