rct_status_t rct_upload_file ( rct_brick_t *  brick,
char *  filename,
rct_flag_t  flags 
)

Upload a file to the brick.

Parameters:
brick - Pointer to a brick structure with an open connection.
filename - name of the file on the local computer.
flags - upload mode
Author:
Jason W. Bacon
Upload the specified file (e.g. an executable or sound file) to the brick. The brick must first be opened with rct_open_brick().

Valid flags:

  • RCT_NO_FLAGS
  • RCT_OVERWRITE - replace the file if it already exists on the brick. Otherwise, upload file will fail and and return an error code.

Supported bricks:

  • NXT


Generated on Sun Jan 13 21:31:18 2008 for roboctl by  doxygen 1.5.1