
File system API frames
Local File System Request - 0x3B
Digi XBee® 3 Cellular LTE-M/NB-IoT Global Smart Modem User Guide
294
Offset
Size
Frame Field
Description
6
16-bit
Path ID
See command
for
description.
8-n
variable
Directory Name
Pathname relative to
Path ID
. The
parent directory of the directory to
create must exist, for example, you must
create all intermediate directories via
separate requests.
Directory Open - 0x11
Description
Used with
to list files and directories in a given directory. To get a listing of entries in a
directory:
1. Send a
Directory Open Request
.
2. Parse multiple entries from the
Response
.
3. If the last entry has the ENTRY_IS_LAST flag set, the listing is complete and the
Directory
Handle
was automatically released.
4. If the listing is not complete, do one of the following:
n
Send a
to get additional directory entries
n
Send a
to release the Directory Handle.
Request
Offset
Size
Frame Field
Description
5
8-bit
File System
Command
Directory Open 0x10
6
16-bit
Path ID
See command
for description.
8-n
variable
Directory Name
Pathname relative to
Path ID
, or empty to get a file
listing for the
Path ID
.
Success Response
A
Directory Open Request
sends a response identical to a
. An empty
directory returns a single entry with only the ENTRY_IS_LAST flag set, and a 0-byte
Entry Name
. A
response ending with an ENTRY_IS_LAST flag automatically closes the Directory Handle.
Offset
Size
Frame Field
Description
5
8-bit
File System
Command
Directory Read - 0x13 or Directory Open - 0x11,
depending on request.
6
16-bit
Status
Success - 0x00