Skip to content

Commit b66c5de

Browse files
authored
Fix incorrect BLEFS documentation (#2442)
Version characteristic returns 16bit not 32bit as described. From copy & paste it was "To continue reading" instead of "To continue writing".
1 parent 8a9ccf2 commit b66c5de

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎doc/BLEFS.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ There are two relevant UUIDs in this protocol: the version characteristic, and t
1414

1515
UUID: `adaf0100-4669-6c65-5472-616e73666572`
1616

17-
The version characteristic returns the version of the protocol to which the sender adheres. It returns a single unsigned 32-bit integer. The latest version at the time of writing this is 4.
17+
The version characteristic returns the version of the protocol to which the sender adheres. It returns a single unsigned 16-bit integer. The latest version at the time of writing this is 4.
1818

1919
### Transfer
2020

@@ -71,7 +71,7 @@ To begin writing to a file, a header must first be sent. The header packet shoul
7171
- Unsigned 32-bit integer encoding the size of the file that will be sent
7272
- File path: UTF-8 encoded string that is _not_ null terminated.
7373

74-
To continue reading the file after this initial packet, the following packet should be sent until all the data has been sent and a response had been received with 0 free space. No close command is required after the data has been received.
74+
To continue writing the file after this initial packet, the following packet should be sent until all the data has been sent and a response had been received with 0 free space. No close command is required after the data has been received.
7575

7676
- Command (single byte): `0x22`
7777
- Status: `0x01`

0 commit comments

Comments
 (0)