Skip to content

Commit 746db43

Browse files
committed
correct ble protocol error
1 parent 7f1fc68 commit 746db43

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

docs/en/05+1-ble_protocol.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,11 @@ For example, writing to a file process:
6363
```
6464
c -> s: 0x12, mode: wc, open file
6565
s -> c: 0x12, status 0, file id 0xa1, the file has been created and can be written
66-
c -> s: 0x14, chunk 0 | 0x8000, file id 0xa1, 246 bytes of data
67-
c -> s: 0x14, chunk 1 | 0x8000, file id 0xa1, 246 bytes of data
66+
c -> s: 0x15, chunk 0 | 0x8000, file id 0xa1, 246 bytes of data
67+
c -> s: 0x15, chunk 1 | 0x8000, file id 0xa1, 246 bytes of data
6868
...
69-
c -> s: 0x14, chunk N, file id 0xa1, 56 bytes of data
70-
s -> c: 0x14, status 0, writing completed
69+
c -> s: 0x15, chunk N, file id 0xa1, 56 bytes of data
70+
s -> c: 0x15, status 0, writing completed
7171
c -> s: 0x13, file id 0xa1, close the file,
7272
s -> c: 0x13, status 0,
7373
```
@@ -77,10 +77,10 @@ Read file process
7777
```
7878
c -> s: 0x12, mode: r, open file
7979
s -> c: 0x12, status 0, file id 0xa1, the file is open and can be read
80-
c -> s: 0x15, chunk 0, file id 0xa1
81-
s -> c: 0x15, status 0, chunk 1 | 0x8000, file id 0xa1, 246 bytes of data
80+
c -> s: 0x14, chunk 0, file id 0xa1
81+
s -> c: 0x14, status 0, chunk 1 | 0x8000, file id 0xa1, 246 bytes of data
8282
...
83-
s -> c: 0x15, status 0, chunk N, file id 0xa1, 56 bytes of data
83+
s -> c: 0x14, status 0, chunk N, file id 0xa1, 56 bytes of data
8484
c -> s: 0x13, file id 0xa1, close the file,
8585
s -> c: 0x13, status 0,
8686
```

docs/zh/05+1-ble_protocol.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ chunk 字段为2个字节,chunk传输流最多能传输7.8M字节。
6464
```
6565
c -> s: 0x12,mode: wc, 打开文件
6666
s -> c: 0x12, status 0, file id 0xa1,文件已经创建好,可以写入
67-
c -> s: 0x14, chunk 0 | 0x8000, file id 0xa1, 246字节数据
68-
c -> s: 0x14, chunk 1 | 0x8000, file id 0xa1, 246字节数据
67+
c -> s: 0x15, chunk 0 | 0x8000, file id 0xa1, 246字节数据
68+
c -> s: 0x15, chunk 1 | 0x8000, file id 0xa1, 246字节数据
6969
...
70-
c -> s: 0x14, chunk N , file id 0xa1, 56字节数据
71-
s -> c: 0x14, status 0, 写入完毕
70+
c -> s: 0x15, chunk N , file id 0xa1, 56字节数据
71+
s -> c: 0x15, status 0, 写入完毕
7272
c -> s: 0x13, file id 0xa1,关闭文件,
7373
s -> c: 0x13, status 0,
7474
```
@@ -78,10 +78,10 @@ s -> c: 0x13, status 0,
7878
```
7979
c -> s: 0x12,mode: r, 打开文件
8080
s -> c: 0x12, status 0, file id 0xa1,文件已经打开,可以读取
81-
c -> s: 0x15, chunk 0 , file id 0xa1
82-
s -> c: 0x15, status 0, chunk 1 | 0x8000, file id 0xa1, 246字节数据
81+
c -> s: 0x14, chunk 0 , file id 0xa1
82+
s -> c: 0x14, status 0, chunk 1 | 0x8000, file id 0xa1, 246字节数据
8383
...
84-
s -> c: 0x15, status 0, chunk N , file id 0xa1, 56字节数据
84+
s -> c: 0x14, status 0, chunk N , file id 0xa1, 56字节数据
8585
c -> s: 0x13, file id 0xa1,关闭文件,
8686
s -> c: 0x13, status 0,
8787
```

0 commit comments

Comments
 (0)