This commit is contained in:
anlicheng 2023-12-24 15:24:33 +08:00
parent 2c22592376
commit d5b4532633

View File

@ -233,6 +233,14 @@ Body: 事件内容AES加密
## 指令说明
### 指令返回格式说明(按照json_rpc 2.0的规范)
```text
成功: {"result": map | array | string | any}
失败: {"error": {code: int, message: "错误描述"}}
```
### 服务器对主机推送的指令格式
<<0x05, PacketId:4, Body:任意长度>>
@ -247,6 +255,7 @@ Body: 事件内容AES加密
"device_uuid": "xxxxxx", // 设备的device_uuid, 数组格式
"version": "1.0",
"directive_type": 0x01, // 中电计费电表控制
"timeout": 10, // 指令执行超时时间
"directive": {
"type": "ctrl", // 遥控
"stype": int, // 遥控类型0: 遥控, 1: 遥调, 2: 置数
@ -254,4 +263,5 @@ Body: 事件内容AES加密
"value": double, // 控制参数
"timestamp": 17031000000 // 发命令时间
}
}
}