更新文档

This commit is contained in:
谷成伟 2024-07-02 16:45:40 +08:00
parent 2ec69aef9c
commit 73e310a2ae

View File

@ -12,4 +12,39 @@
采集程序与系统间采用Websocket方式通讯 访问本地断开端口: 7790 。
报文格式为`json`
## 通讯报文
### 节点上线请求
?> 方向: `采集` -> `系统`
```json
{
//节点ID
"nodeId" : "nx10928234",
//消息ID
"messageId": "123512351235123",
//命令
"action" : "online"
}
```
### 节点上线响应
?> 方向: `系统` -> `采集`
```json
{
//节点ID
"nodeId" : "nx10928234",
//消息ID
"messageId": "123512351235123",
//命令
"action" : "online",
//名称执行结果
"result" : true,
//出错时的消息。
"error" : ""
}