MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.2k stars 21.35k forks source link

Cannot find Reference documentation for Device Endpoint HTTP #97005

Closed ridomin closed 1 year ago

ridomin commented 2 years ago

This page describes de Device endpoints for IoT hub,

In the same way there is an article describing the MQTT support here I'm looking for the detailed REST reference docs describing the HTTP support for device-to-cloud messages.

Related to: https://github.com/Azure/azure-iot-sdk-node/issues/1141


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

AshokPeddakotla-MSFT commented 2 years ago

@ridomin Thanks for the feedback! We are currently investigating and will update you shortly.

SatishBoddu-MSFT commented 2 years ago

Hello @ridomin

Please refer to the document:Choose a device communication protocol

HTTPS: Use for devices that cannot support other protocols. When using HTTPS, each device should poll for cloud-to-device messages no more than once every 25 minutes. In development, each device can poll more frequently, if desired.

Please let us know if you are looking for any specific scenario which is not available in the documentation?

rido-min commented 2 years ago

Hi @SatishBoddu-MSFT

I'm looking for the REST api to send telemetry messages, aka D2C messages

All I've found in the docs are related to C2D messages, but no telemetry

SatishBoddu-MSFT commented 2 years ago

Hello @kgremban Could you please help us on this document request for "REST api to send telemetry messages, aka D2C messages"

JimacoMS4 commented 2 years ago

Hi @rido-min,

Thanks for reaching out. Here are a couple of places to get started:

Does that help? If you need more information, please respond back on this thread. And, just FYI, I'm out today, but I'll see any response first thing tomorrow morning.

-Jimaco

rido-min commented 2 years ago

Hi @JimacoMS4

This is the article I was looking for, I think I missed it because I was searching for telemetry, or d2c and did not search for "device-event". As additional feedback I miss some details from the article content:

Feel free to reuse the sample code in this gist to showcase how to implement HTTP device telemetry without any SDK.

JimacoMS4 commented 2 years ago

Hi @rido-min,

To your first bullet. You're right, that probably is somewhat misstated. I think it should be that user-defined application properties should follow the iothub-app-xxxx form. I think that dt-subject, however, is a system property, and it should just be added as-is: Here's the list of system properties: https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-messages-construct.

On the second bullet, again, you're correct the API doesn't mention the auth header. This is lightly covered in the REST overview (at least for the symmetric key case): https://docs.microsoft.com/en-us/rest/api/iothub/#common-parameters-and-headers.

Let me take the rest of this up with you offline. Again, thanks,

Jimaco