File Write - 0x04
Description
Write to the file.
Request
Offset | Size | Frame Field | Description |
---|---|---|---|
5 | 8-bit |
File System Command |
File Write - 0x04 |
6 | 16-bit |
File Handle |
Value returned from File Open - 0x01 response. |
8 | 32-bit |
Write Offset |
File position for write, or 0xFFFFFFFF to use the current position. If the file was opened with the 0x80 (SECURE) bit set, Write Offset must always be 0xFFFFFFFF. Secure files do not support a file seek operation. |
12-n | variable |
Data |
Data to write to file. If empty, frame just refreshes the File Handle timeout to keep the file open. |
Success Response
Offset | Size | Frame Field | Description |
---|---|---|---|
5 | 8-bit |
File System Command |
File Write - 0x04 |
6 | 8-bit |
Status |
Success - 0x00 |
7 | 16-bit |
File Handle |
Value sent in request. |
9 | 32-bit |
Current Offset |
Current offset of file after writing Data from Request. |