Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.1.1图表错误修复 #14

Merged
merged 1 commit into from
Apr 5, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3.1.1图表错误修复
3.1.1图表错误修复
  • Loading branch information
justwezzz committed Apr 5, 2017
commit fe176c61382cdd87861d9254dc401de19e3dffc3
38 changes: 33 additions & 5 deletions mqtt/0301-CONNECT.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,39 @@

##### 图例 3.1 –CONNECT报文的固定报头

| **Bit** | **7** | **6** | **5** | **4** | **3** | **2** | **1** | **0** |
|---------|------------------|-----------------|-------|-------|-------|-------|-------|-------|
| byte 1 | MQTT报文类型 (1)[7-4] | Reserved 保留位 |
| | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |
| byte 2… | 剩余长度值 |
<table style="text-align:center">
<tr>
<td align="center"><strong>Bit</strong></td>
<td align="center"><strong>7</strong></td>
<td align="center"><strong>6</strong></td>
<td align="center"><strong>5</strong></td>
<td align="center"><strong>4</strong></td>
<td align="center"><strong>3</strong></td>
<td align="center"><strong>2</strong></td>
<td align="center"><strong>1</strong></td>
<td align="center"><strong>0</strong></td>
</tr>
<tr>
<td>byte 1</td>
<td colspan="4" align="center">MQTT报文类型 (1)</td>
<td colspan="4" align="center">Reserved 保留位</td>
</tr>
<tr>
<td></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>
<td align="center">0</td>
<td align="center">0</td>
<td align="center">0</td>
</tr>
<tr>
<td>byte 2...</td>
<td colspan="8" align="center">剩余长度</td>
</tr>
</table>

**剩余长度字段**

Expand Down