设备接入 IOTDA-设备状态变更通知:请求示例

时间:2024-06-28 09:24:57

请求示例

设备状态变更通知示例:

设备状态变更通知

{
  "resource" : "device.status",
  "event" : "update",
  "event_time" : "20151212T121212Z",
  "event_time_ms" : "2015-12-12T12:12:12.000Z",
  "request_id" : "3fe58d5e-8697-4849-a165-7db128f7e776",
  "notify_data" : {
    "header" : {
      "device_id" : "d4922d8a-6c8e-4396-852c-164aefa6638f",
      "product_id" : "ABC123456789",
      "app_id" : "d4922d8a-6c8e-4396-852c-164aefa6638f",
      "gateway_id" : "d4922d8a-6c8e-4396-852c-164aefa6638f",
      "node_id" : "ABC123456789",
      "tags" : [ {
        "tag_value" : "testTagValue",
        "tag_key" : "testTagName"
      } ]
    }
  },
  "body" : {
    "last_online_time" : "20151212T121212Z",
    "status" : "ONLINE",
    "status_update_time" : "2015-12-12T12:12:12.815Z"
  }
}
support.huaweicloud.com/api-iothub/iot_06_v5_01201.html