Skip to content

Commit

Permalink
Merge pull request mcxiaoke#52 from wanyaoasiainfo/master
Browse files Browse the repository at this point in the history
Update 0301-CONNECT.md
  • Loading branch information
mcxiaoke committed May 8, 2023
2 parents f9bdd70 + 2425697 commit 166183f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion mqtt/0301-CONNECT.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ CONNECT报文的有效载荷(payload)包含一个或多个以长度为前缀
##### 图例 3.7 - 密码字节

| **Bit** | **7** - **0** |
|-----------|---------------------|-
|-----------|---------------------|
| byte 1 | 数据长度 MSB |
| byte 2 | 数据长度 LSB |
| byte 3 …. | 如果长度大于0,这里就是数据部分 |
Expand Down
9 changes: 1 addition & 8 deletions mqtt/0308-SUBSCRIBE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@
### 3.8.1 固定报头

##### 图例 3.20 – SUBSCRIBE报文固定报头

| **Bit** | **7** | **6** | **5** | **4** | **3** | **2** | **1** | **0** |
|---------|----------------------|--------|-------|-------|-------|-------|-------|-------|
| byte 1 | MQTT控制报文类型 (8) | 保留位 |
| | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
| byte 2 | 剩余长度 |

<table style="text-align:center">
<tr>
<td align="center"><strong>Bit</strong></td>
Expand All @@ -37,7 +30,7 @@
<td align="center">0</td>
<td align="center">0</td>
<td align="center">0</td>
<td align="center">0</td>
<td align="center">1</td>
<td align="center">0</td>
</tr>
<tr>
Expand Down

0 comments on commit 166183f

Please sign in to comment.