RCP API  6.61.0

◆ rcp_rftp_send_file_v2()

rcp_error_t rcp_rftp_send_file_v2 ( rcp_camera_connection_t con,
const char *  path,
uint8_t *  data,
int64_t  uncompressed_len,
int64_t  compressed_len,
int  file_is_compressed,
int  fragment_size,
rcp_uuid_t uuid 
)

Send file to camera.

Sends a file to the camera. This can be a preset file, overlay file, upgrade image, etc.

Parameters
[in]conthe camera connection
[in]pathdestination path of the file on the camera
[in]datadata of the file to be sent
[in]uncompressed_lenuncompressed length of data
[in]compressed_lencompressed length of data
[in]file_is_compressedif true, data contains compressed data
[in]fragment_sizenumber of base64-encoded bytes of data sent per fragment
[out]uuidUUID object to use in subsequent api calls
Returns
RCP_SUCCESS if successful.