From 73e310a2aeab3813d1bbb4725e82ea5693e02b96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=B7=E6=88=90=E4=BC=9F?= Date: Tue, 2 Jul 2024 16:45:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/datacollect/README.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/docs/datacollect/README.md b/docs/datacollect/README.md index 1ea88e49..108d7fbd 100644 --- a/docs/datacollect/README.md +++ b/docs/datacollect/README.md @@ -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" : "" +}