事件消息格式定义

终端用户托管设备给开发者后推送此消息

{
  "warrantId": "146746972164984832",
  "msgType": "warrantInit",
  "phone": "158***404",
  "appId": "lc68ba43f2117342ce",
  "deviceList": [
    {
      "authority": "RecordReplay,Format",
      "channelName": "TP1S-2113",
      "deviceId": "MEGREZ0000002113",
      "deviceName": "TP1S-2113",
      "channelId": "0"
    }
  ],
  "remark": ""
}

终端用户取消设备托管后推送此消息

{
  "msgType": "deviceAuthCancel",
  "appId": "lcb77ae6bf72824a5d",
  "deviceList": [
    {
      "deviceId": "5H08FAEPAJB6A35"
    }
  ]
}

终端用户修改已托管设备的权限后推送此消息

{
  "warrantId": "146109321904787456",
  "msgType": "warrantModify",
  "phone": "18***096",
  "appId": "lc24aca71720594f3c",
  "deviceList": [
    {
      "authority": "Format,Config,Siren,Ptz,WhiteLight,Alarm,Upgrade,Capture",
      "deviceId": "MEGREZ0000004574",
      "deviceName": "TP1S-4574",
      "channelId": "0"
    }
  ]
}

注:此消息会推送终端用户修改的托管申请单下所有有权限的设备信息

终端用户解绑或者转移设备后推送此消息

{
  "msgType": "authorityRemove",
  "warrantId": "146690789022502912",
  "appId": "lc68ba43f2117342ce",
  "deviceId": "5A05BD4PAJE237E",
  "operation": "unbindDevice"//transferDeviceFrom设备转移,unbindDevice设备解绑
}

results matching ""

    No results matching ""