Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Commit 5e94ed3

Browse files
committed
修改协议文档
1 parent 88f657a commit 5e94ed3

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

docs/protocol.md

+4-10
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88

99
| 标识 | 长度(位) | 说明 |
1010
|------|-------|-------|
11-
| 魔术字 | 24 |iot|
11+
| 魔术字 | 24 |rpc|
1212
| 包含数据 | 1 | 0/1 |
1313
| 数据结束 | 1 | 0/1 |
14-
| 数据格式 | 3 | 0-7 |
14+
| 数据格式 | 2 | 0-3 |
1515
| 包类型 | 3 | 0-7 |
1616

1717
### 扩展头 4字节
@@ -41,15 +41,9 @@
4141
| Binary | 0 | 默认二进制 |
4242
| JSON | 1 | |
4343
| YAML | 2 | |
44-
| XML | 3 | |
45-
| CSV | 4 | 适用于表格形式的数据 |
46-
| MessagePack | 5 | |
47-
| Protobuf | 6 | |
48-
| Reserved | 7 | 保留 |
44+
| MessagePack | 3 | |
4945

50-
数据格式建议使用默认的json格式,方便开发和调试,对于需要省流的场景,可以改进为msgpack或protobuf
51-
52-
protobuf暂不支持,需要定义proto文件
46+
数据格式建议使用默认的json格式,方便开发和调试,对于需要省流的场景,可以改进为msgpack或二进制
5347

5448

5549
## 二、基础交互说明

0 commit comments

Comments
 (0)