Looking for REST calls to send telemetry data to Azure IoT Hub without using Azure IoT SDK

Viewed 27

I am working with a device that cannot include Azure IoT SDK. It can only send HTTO calls.

Is there any guide explain the simplest REST calls that allow my device send telemetry data to Azure IoT Hub?

1 Answers

Azure IoT Hub also offer the REST API to Send a device-to-cloud message.

The REST APIs for IoT Hub offer programmatic access to the device, messaging, and job services, as well as the resource provider, in IoT Hub. You can access messaging services from within an IoT service running in Azure, or directly over the Internet from any application that can send an HTTPS request and receive an HTTPS response.

You can use the Send Device Event for sending device-to-cloud message.

POST https://fully-qualified-iothubname.azure-devices.net/devices/{id}/messages/events?api-version=2020-03-13

You can go through the below documentations for more details.

Azure IoT Hub Device Rest API Operations and Azure IoT Hub REST API

Related