这是本文档旧的修订版!
推送的目标服务器路径:
用户在平台设置的推送地址
推送的功能:
当设备发生火警或故障报警时,平台接收到设备传过来的数据后,经过处理可以分发到第三方平台接口
推送的方法:
POST
推送的Body内的参数格式:
参数 | 类型 | 描述 |
logId | String | 日志编号 |
projectId | String | 项目编号 |
flag | Integer | 标志位:0网关1控制器2设备(二次码)3设备(回路) |
gatewayName | String | 网关名称 |
deviceId | String | 设备编号 |
devicePosition | String | 设备安装位置 |
deviceControllerId | Integer | 控制器编号 |
deviceLoopId | Integer | 设备回路号 |
deviceAddrId | Integer | 设备逻辑地址 |
deviceChannelId | Integer | 设备通道号 |
deviceNumber | String | 设备二次码 |
deviceType | Integer | 设备类型编号 |
deviceState | Integer | 设备详细状态 |
deviceGroupState | Integer | 设备状态分组 |
happenTime | Long | 发生的时间 |
推送的示例:
访问的URL:
用户设定的地址
Header的参数:
Content-Type: application/json
Accept: application/json
Body内的数据:
{
“logId”: “63f454550f2342a9985ca8bc447baa5b”,
“projectId”: “63f454550f2342a9985ca8bc447baa5c”,
“gatewayName”: “TX3252_20180412zxy001”,
“deviceId”: “63f454550f2342a9985ca8bc447baa5a”,
“devicePosition “: “大厅”,
“deviceControllerId”: 1,
“deviceLoopId”: 1,
“deviceAddrId”: 1,
“deviceChannelId”: 0,
“deviceNumber”: “-“,
“deviceType”: 1,
“projectState”: 1,
“deviceGroupState”: 1,
“happenTime “: 1524895526000
}