Send telemetry to IOT central using HTTP Rest, without registering devices

Milan Perovic 20 Reputation points
2023-11-20T19:28:57.1+00:00

Hi all,

is it possible to use endpoint (Device - Send Device Event): https://learn.microsoft.com/en-us/rest/api/iothub/device/send-device-event?view=rest-iothub-2020-03-13

To send data to IOT Central, but with out registering new device (using option auto-approve)? So idea is to send telemetry data to IOTC and it is a new device, it should be accepted.

What puzzles me it that IOT central Postman collection does not include this endpoint and documentation does not mention this as an option.

My guess is that I need to generate SAS token using Device Connection Group parameters, but I can't make it working

Can someone point me to right direction?

Thanks

Azure IoT Central
Azure IoT Central
An Azure hosted internet of things (IoT) application platform.
355 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sander van de Velde 29,856 Reputation points MVP
    2023-11-20T22:18:57.44+00:00

    Hello @Milan Perovic**,**

    welcome to this moderated Azure community forum.

    Azure IoT Central is a Software-as-a-Service solution based on the well-known Azure IoT Platform-as-a-Service resources.

    For example, it has an IoT Hub and a Device Provisioning Services built in but these are not fully disclosed, expect for certain endpoints.

    If you want to send data, as a device, to Azure IoT Central, you need to create the device first (via de DPS interface). Only then you can start sending data.

    By the way, this is the recommended way of setting up communication in case the PaaS services are used. Only having an IoT Hub is a configuration risk and limits flexibility.

    So, it's not recommended communication with the IoT Central IoT hub directly. That is why this interface is not documented for IoT Central.

    Check out this free MS Learn training module regarding IoT Central.


    If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.


0 additional answers

Sort by: Most helpful