更新文档
This commit is contained in:
parent
2ec69aef9c
commit
73e310a2ae
@ -12,4 +12,39 @@
|
|||||||
|
|
||||||
采集程序与系统间采用Websocket方式通讯, 访问本地断开端口: 7790 。
|
采集程序与系统间采用Websocket方式通讯, 访问本地断开端口: 7790 。
|
||||||
|
|
||||||
|
报文格式为`json`
|
||||||
|
|
||||||
|
## 通讯报文
|
||||||
|
|
||||||
|
### 节点上线请求
|
||||||
|
|
||||||
|
?> 方向: `采集` -> `系统`
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
//节点ID
|
||||||
|
"nodeId" : "nx10928234",
|
||||||
|
//消息ID
|
||||||
|
"messageId": "123512351235123",
|
||||||
|
//命令
|
||||||
|
"action" : "online"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### 节点上线响应
|
||||||
|
|
||||||
|
?> 方向: `系统` -> `采集`
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
//节点ID
|
||||||
|
"nodeId" : "nx10928234",
|
||||||
|
//消息ID
|
||||||
|
"messageId": "123512351235123",
|
||||||
|
//命令
|
||||||
|
"action" : "online",
|
||||||
|
//名称执行结果
|
||||||
|
"result" : true,
|
||||||
|
//出错时的消息。
|
||||||
|
"error" : ""
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user