This commit is contained in:
刘玉霞 2024-07-02 19:02:37 +08:00
commit 1da3fc33f5
6 changed files with 57 additions and 4 deletions

View File

@ -1,4 +1,5 @@
* [首页](/)
* [API说明](api/readme.md)
* [系统管理](api/api_list.md)
* [设备管理](api/equipment.md)
- [首页](/)
- [API说明](api/)
- [系统管理](api/systemmgr.md)
- [设备管理](api/equipment.md)
- [数据采集](datacollect/)

View File

@ -0,0 +1 @@
- [返回首页](/)

View File

@ -0,0 +1,50 @@
# 数据采集
## 采集配置说明
采集程序配置存放在: `/das/conf/collector.json`
如果系统配置更新将生成配置更新文件: `/das/conf/collector.json.update`
!> 此处为配置文件的内容说明。
## 采集程序与系统交互通道
采集程序与系统间采用Websocket方式通讯 访问本地断开端口: 7790 。
报文格式为`json`
## 通讯报文
### 节点上线请求
?> 方向: `采集` -> `系统`
```json
{
//节点ID
"nodeId" : "nx10928234",
//消息ID
"messageId": "123512351235123",
//命令
"action" : "online"
}
```
### 节点上线响应
?> 方向: `系统` -> `采集`
```json
{
//节点ID
"nodeId" : "nx10928234",
//消息ID
"messageId": "123512351235123",
//命令
"action" : "online",
//名称执行结果
"result" : true,
//出错时的消息。
"error" : ""
}

View File

@ -0,0 +1 @@
- [返回首页](/)