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

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

请求示例

设备消息状态变更通知示例:

设备消息状态变更通知

{
  "resource" : "device.message.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" : {
    "error_info" : {
      "error_msg" : "Send to device failed, device not subscribe topic.",
      "error_code" : "IOTDA.014112"
    },
    "name" : "name",
    "topic" : "topic",
    "message_id" : "1235",
    "status" : "DELIVERED",
    "timestamp" : "20151212T121212Z"
  }
}
support.huaweicloud.com/api-iothub/iot_06_v5_01203.html