用户工具

站点工具


wiki:v_operation_notification_service

操作通知服务

推送的目标服务器路径

用户在平台设置的推送地址

推送的功能:

当设备执行操作后,平台接收到传过来的操作信息,经过处理可以分发到第三方平台接口。

推送的方法

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

设备类型编号

happenTime

Long

操作时间

optCode

Integer

操作码

推送的示例:

访问的URL

用户设定的地址

Header的参数

    Content-Type: application/json

    Accept: application/json

Body内的数据

{

“logId”: “63f454550f2342a9985ca8bc447baa5b”,

“projectId”: “63f454550f2342a9985ca8bc447baa5c”,

“flag”: 0,

“gatewayName”: “TX3252_20180412zxy001”,

“deviceId”: “-“,

devicePosition : 大厅,

“deviceControllerId”: 1,

“deviceLoopId”: 1,

“deviceAddrId”: 1,

“deviceChannelId”: 0,

“deviceNumber”: “-“,

“deviceType”: 1,

“happenTime “: 1524895526000,

“optCode“:1

}

wiki/v_operation_notification_service.txt · 最后更改: 2018/05/21 05:18 由 admin