Device - Send Device Event
Mengirim pesan perangkat ke cloud. Lihat https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-messaging untuk informasi lebih lanjut.
POST https://fully-qualified-iothubname.azure-devices.net/devices/{id}/messages/events?api-version=2020-03-13
Parameter URI
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
id
|
path | True |
|
ID perangkat. |
|
api-version
|
query | True |
|
Versi Api. |
Header Permintaan
| Name | Required | Type | Description |
|---|---|---|---|
| iothub-app-XXX |
|
Properti aplikasi opsional yang diawali dengan 'iothub-app-' untuk ditempatkan di bagian 'applicationProperties' dari pesan (awalan 'iothub-app-' akan dilucuti). |
Respons
| Name | Type | Description |
|---|---|---|
| 204 No Content |
Tidak ada Konten |