Merge branch 'main' of https://git.jsspisoft.com/ry-das
This commit is contained in:
commit
1da3fc33f5
@ -1,4 +1,5 @@
|
||||
* [首页](/)
|
||||
* [API说明](api/readme.md)
|
||||
* [系统管理](api/api_list.md)
|
||||
* [设备管理](api/equipment.md)
|
||||
- [首页](/)
|
||||
- [API说明](api/)
|
||||
- [系统管理](api/systemmgr.md)
|
||||
- [设备管理](api/equipment.md)
|
||||
- [数据采集](datacollect/)
|
@ -0,0 +1 @@
|
||||
- [返回首页](/)
|
50
docs/datacollect/README.md
Normal file
50
docs/datacollect/README.md
Normal 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" : ""
|
||||
}
|
1
docs/datacollect/_sidebar.md
Normal file
1
docs/datacollect/_sidebar.md
Normal file
@ -0,0 +1 @@
|
||||
- [返回首页](/)
|
Loading…
Reference in New Issue
Block a user