Device - Send Device Event
Skicka ett meddelande från enheten till molnet. Mer information finns i https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging.
POST https://fully-qualified-iothubname.azure-devices.net/devices/{id}/messages/events?api-version=2020-03-13
URI-parametrar
Name | I | Obligatorisk | Typ | Description |
---|---|---|---|---|
id
|
path | True |
string |
Enhets-ID. |
api-version
|
query | True |
string |
Version av API:et. |
Begärandehuvud
Name | Obligatorisk | Typ | Description |
---|---|---|---|
iothub-app-XXX |
string |
Valfri programegenskap med prefixet "iothub-app-" som ska placeras i avsnittet "applicationProperties" i meddelandet (prefixet "iothub-app-" kommer att tas bort). |
Svar
Name | Typ | Description |
---|---|---|
204 No Content |
Inget innehåll |