消息发布

2024-09-09
暂无评分

Message deviceOsd

设备遥感信息

服务端定频推送同一个工作空间下的所有设备遥感信息给PILOT端,PILOT会根据接收到的数据实时更新地图中设备状态和位置。

Payload

NameTypeDescriptionValueConstraintsNotes
(root)object---additional properties are allowed
biz_codestring消息业务码---
versionstring消息版本---
timestampinteger消息发送时间(毫秒)---
dataobject---additional properties are allowed
data.hostobject---additional properties are allowed
data.snstring设备序列号--additional properties are allowed
data.host.latitudenumber纬度---
data.host.longitudenumber经度---
data.host.heightinteger椭球高度---
data.host.attitude_headnumber设备朝向---
data.host.elevationnumber相对起飞高度---
data.host.horizontal_speednumber水平速度---
data.host.vertical_speednumber垂直速度---

Examples of payload

{
  "biz_code": "device_osd",
  "version": "1.0",
  "timestamp": 146052438362,
  "data": {
    "host": {
      "latitude": 113.44444,
      "longitude": 23.45656,
      "height": 44.35,
      "attitude_head": 90,
      "elevation": 40,
      "horizontal_speed": 0,
      "vertical_speed": 2.3
    },
    "sn": "string"
  }
}

Message deviceOnline

设备上线

当服务端接收到同一个工作空间下的任意设备上线的请求后,同时也通过websocket广播一条设备上线的推送给到PILOT端,PILOT收到该推送后,会触发“获取设备拓扑列表”。

Payload

NameTypeDescriptionValueConstraintsNotes
(root)object---additional properties are allowed
biz_codestring消息业务码---
versionstring消息版本---
timestampinteger消息发送时间(毫秒)---
dataobject---additional properties are allowed

Examples of payload

{
  "biz_code": "device_online",
  "version": "1.0",
  "timestamp": 146052438362,
  "data": {}
}

Message deviceOffline

设备下线

当服务端接收到同一个工作空间下的任意设备下线的请求后,同时也通过websocket广播一条设备下线的推送给到PILOT端,PILOT收到该推送后,会触发“获取设备拓扑列表”。

Payload

NameTypeDescriptionValueConstraintsNotes
(root)object---additional properties are allowed
biz_codestring消息业务码---
versionstring消息版本---
timestampinteger消息发送时间(毫秒)---
dataobject---additional properties are allowed

Examples of payload

{
  "biz_code": "device_offline",
  "version": "1.0",
  "timestamp": 146052438362,
  "data": {}
}

Message deviceUpdateTopo

设备拓扑更新

当服务端接收到同一个工作空间下的任意设备设备拓扑更新的请求后,同时也通过websocket广播一条设备拓扑更新的推送给到PILOT端,PILOT收到该推送后,会触发 获取设备拓扑列表 协议。

Payload

NameTypeDescriptionValueConstraintsNotes
(root)object---additional properties are allowed
biz_codestring消息业务码---
versionstring消息版本---
timestampinteger消息发送时间(毫秒)---
dataobject---additional properties are allowed

Examples of payload

{
  "biz_code":"device_update_topo",
  "version":"1.0",
  "timestamp":146052438362,
  "data":{}
}
若您对文档有意见或疑惑,点击可快速反馈,我们会与您联系。