订阅离线数据数量

接口描述

当相机存储离线数据以后,在特定时间推送此消息。

特定时间:

1、收到offline_record订阅时;

2、本次离线数据发送结束时;

Topic

device/{sn}/message/up/offline_record

消息示例

{
  "bv": 12378,
  "id": "6rIxgoC0DBcIPVeJ",
  "name": "offline_record",
  "payload": {
    "body": {
      "offline_record": 0
    }
  },
  "sn": "d50908e1-b2d16043",
  "timestamp": 1631868294,
  "version": "1.0"
}

字段含义

层级 参数 类型 说明
1 payload object Body内容
1.1 state_code int 状态码(200成功;500失败)
1.2 offline_record int 离线数据数量

results matching ""

    No results matching ""