你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Device - Send Device Event
发送设备到云的消息。 有关详细信息,请参阅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 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
id
|
path | True |
string |
设备 ID。 |
api-version
|
query | True |
string |
Api 的版本。 |
请求头
名称 | 必需 | 类型 | 说明 |
---|---|---|---|
iothub-app-XXX |
string |
带有“iothub-app-”前缀的可选应用程序属性将 (“iothub-app-”前缀删除) 消息的“applicationProperties”部分。 |
响应
名称 | 类型 | 说明 |
---|---|---|
204 No Content |
无内容 |