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.
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.