You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,7 +88,7 @@ The base UUID used in characteristics is `ADAFxxxx-4669-6C65-5472-616E73666572`.
88
88
The service has two characteristics:
89
89
90
90
* version (`0x0100`) - Simple unsigned 32-bit integer version number. Always 1.
91
-
* raw transfer (`0x0200`) - Bidirectional link with a custom protocol. The client does WRITE_NO_RESPONSE to the characteristic and then server replies via NOTIFY. (This is similar to the Nordic UART Service but on a single characteristic rather than two.) The commands over the transfer characteristic are idepotent and stateless. A disconnect during a command will reset the state.
91
+
* raw transfer (`0x0200`) - Bidirectional link with a custom protocol. The client does WRITE_NO_RESPONSE to the characteristic and then server replies via NOTIFY. (This is similar to the Nordic UART Service but on a single characteristic rather than two.) The commands over the transfer characteristic are idempotent and stateless. A disconnect during a command will reset the state.
92
92
93
93
Commands
94
94
---------
@@ -161,7 +161,7 @@ The header is two fixed entries and a variable length path:
161
161
162
162
The server will reply with:
163
163
* Command: Single byte. Always `0x03`.
164
-
* Status: Single byte. `0x81` if the file or directory was deleted or `0x82` if the path is a non-empty directory or non-existant.
164
+
* Status: Single byte. `0x81` if the file or directory was deleted or `0x82` if the path is a non-empty directory or non-existent.
165
165
166
166
`0x04` - Make a directory
167
167
+++++++++++++++++++++++++
@@ -197,7 +197,7 @@ The server will reply with n+1 entries for a directory with n files:
197
197
* Flags: 8-bit number encoding data about the entries per-bit. Bit
198
198
* Bit 0: Set when the entry is a directory
199
199
* Bits 1-7: Reserved
200
-
* File size: 32-bit number encoding the size of the file. 0 for directories.
200
+
* File size: 32-bit number encoding the size of the file. Ignore for directories. Value may change.
201
201
* Path length: 16-bit number encoding the encoded length of the path string.
202
202
* Path: UTF-8 encoded string that is *not* null terminated. (We send the length instead.) These paths are relative so they won't contain `/` at all.
0 commit comments