fix docs
This commit is contained in:
parent
2c22592376
commit
d5b4532633
@ -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: 置数
|
||||
@ -255,3 +264,4 @@ Body: 事件内容,AES加密
|
||||
"timestamp": 17031000000 // 发命令时间
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user