Skip to content

设备事件上报推送

POST
/mqtt/events

MQTT Topic: /sys/{product_id}/{device_id}/app/down/thing/events

当设备上报事件时,服务端通过 MQTT 推送事件通知。

响应

设备事件推送

application/json
JSON
{
  
"error_code": 200,
  
"message_id": "string",
  
"device_id": "string",
  
"data": {
  
  
"user_id": "string",
  
  
"event_id": "string",
  
  
"event_type": 0,
  
  
"properties": {
  
  
},
  
  
"code": "string",
  
  
"gmt_create": "string"
  
}
}

试验场

示例