From 1d5476abc4fe5987028ced773bd06476ed1b3bbd Mon Sep 17 00:00:00 2001 From: houwei Date: Mon, 28 Oct 2024 13:09:33 +0800 Subject: [PATCH] Update node.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改链路配置相关的api接口文档 --- docs/api/node.md | 150 ++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 136 insertions(+), 14 deletions(-) diff --git a/docs/api/node.md b/docs/api/node.md index 8ca01933..f72bef5e 100644 --- a/docs/api/node.md +++ b/docs/api/node.md @@ -362,12 +362,86 @@ POST 请求接口 { "code": 200, "success": true, - "data": { - "name": "hight", - "equipmentName": "ceshifangfa", - "equipmenId": "1788084346705514497", - "params":"{bindAddr:127.0.0.1,bindPort:80,targetPort:443,targetAddr:114.114.114.114,socketType:1}" - }, + "data": [ + { + "id": "75974000971874304", + "linkId": "74303135031754752", + "linkName": "倍福1.5链路", + "equipmentId": "1846101273013739522", + "equipmentName": "A-001", + "equipmentCode": "A-001", + "measPointType": 146, + "measPointCode": "setGenSpeedLimitValue", + "measPointName": "发电机转速给定值", + "porder": 14, + "params": "{\"name\":\"发电机转速给定值\",\"code\":\"setGenSpeedLimitValue\",\"col1\":0,\"col2\":6,\"col3\":0,\"col4\":\"\",\"col5\":183,\"col6\":\"\"}" + }, + { + "id": "75974000971874305", + "linkId": "74303135031754752", + "linkName": "倍福1.5链路", + "equipmentId": "1846101273013739522", + "equipmentName": "A-001", + "equipmentCode": "A-001", + "measPointType": 146, + "measPointCode": "setGenSpeedLimitValue", + "measPointName": "发电机转速给定值", + "porder": 14, + "params": "{\"name\":\"发电机转速给定值\",\"code\":\"setGenSpeedLimitValue\",\"col1\":0,\"col2\":6,\"col3\":0,\"col4\":\"\",\"col5\":183,\"col6\":\"\"}" + }, + { + "id": "75974000971874306", + "linkId": "74303135031754752", + "linkName": "倍福1.5链路", + "equipmentId": "1846101273013739522", + "equipmentName": "A-001", + "equipmentCode": "A-001", + "measPointType": 146, + "measPointCode": "setActivePowerLimitValue", + "measPointName": "有功功率给定值", + "porder": 15, + "params": "{\"name\":\"有功功率给定值\",\"code\":\"setActivePowerLimitValue\",\"col1\":0,\"col2\":6,\"col3\":0,\"col4\":\"\",\"col5\":184,\"col6\":\"\"}" + }, + { + "id": "75974000971874307", + "linkId": "74303135031754752", + "linkName": "倍福1.5链路", + "equipmentId": "1846101273013739522", + "equipmentName": "A-001", + "equipmentCode": "A-001", + "measPointType": 146, + "measPointCode": "setActivePowerLimitValue", + "measPointName": "有功功率给定值", + "porder": 15, + "params": "{\"name\":\"有功功率给定值\",\"code\":\"setActivePowerLimitValue\",\"col1\":0,\"col2\":6,\"col3\":0,\"col4\":\"\",\"col5\":184,\"col6\":\"\"}" + }, + { + "id": "75974000971874308", + "linkId": "74303135031754752", + "linkName": "倍福1.5链路", + "equipmentId": "1846101273013739522", + "equipmentName": "A-001", + "equipmentCode": "A-001", + "measPointType": 146, + "measPointCode": "setReactivePowerValue", + "measPointName": "无功功率给定值", + "porder": 16, + "params": "{\"name\":\"无功功率给定值\",\"code\":\"setReactivePowerValue\",\"col1\":0,\"col2\":6,\"col3\":0,\"col4\":\"\",\"col5\":185,\"col6\":\"\"}" + }, + { + "id": "75974000971874309", + "linkId": "74303135031754752", + "linkName": "倍福1.5链路", + "equipmentId": "1846101273013739522", + "equipmentName": "A-001", + "equipmentCode": "A-001", + "measPointType": 146, + "measPointCode": "setReactivePowerValue", + "measPointName": "无功功率给定值", + "porder": 16, + "params": "{\"name\":\"无功功率给定值\",\"code\":\"setReactivePowerValue\",\"col1\":0,\"col2\":6,\"col3\":0,\"col4\":\"\",\"col5\":185,\"col6\":\"\"}" + } + ], "msg": "操作成功" } ``` @@ -380,10 +454,22 @@ POST 请求接口 请求参数 ```json { - "equipmentId": ["1788084346705514497"], - "linkId": "73556002258550784" + "linkId": "75979266885156864", + "equipmentList": [ + { + "id": "1846101273013739522", + "name": "A-001", + "iotModelId": "1807685851882508289", + "iotAddr": "127.168.0.1" + }, + { + "id": "75817384363950080", + "name": "A-002", + "iotModelId": "1807685851882508289", + "iotAddr": "127.168.0.2" + } + ] } - ``` 返回报文 @@ -446,9 +532,16 @@ POST 请求接口 "success": true, "data": [ { - "equipmentId": "73714632985149440", - "equipmentName": "风电场测试", - "porder": 1 + "id": "1846101273013739522", + "name": "A-001", + "iotModelId": "1807685851882508289", + "iotAddr": "127.168.0.1" + }, + { + "id": "75817384363950080", + "name": "A-002", + "iotModelId": "1807685851882508289", + "iotAddr": "127.168.0.2" } ], "msg": "操作成功" @@ -482,10 +575,39 @@ POST 请求接口 } ``` -### 1.2.11设备遥控操作 +### 1.2.11单设备遥控操作 + +POST 请求接口 + +> /api/node/link/command + +请求参数 + +```sjon +{ + "deviceId": "1846101273013739522", + "serviceName": "setTurbineFastStart", + "opValue": 1 +} +``` +### 1.2.12单设备遥调操作 + +POST 请求接口 + +> /api/node/link/setPoint + +请求参数 + +```json +{ + "deviceId": "1846101273013739522", + "serviceName": "setActivePowerLimitValue", + "opValue": 52.5 +} +``` + -### 1.2.12设备遥调操作