Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Current »

Sends a file from a memory buffer.

Files

ftp-c.h/ftp-c.c

Prototype

Arguments

p_conn

Pointer to FTPc Connection object.

p_remote_file_name 

Pointer to name of the file on the remote FTP server.

p_buf

Pointer to memory buffer to send.

buf_len

Size of the memory buffer.

append 

Whether to append at the end of the existing file or overwrite content:
DEF_YES, to append data.
DEF_NO,   to overwrite data.

p_err 

Pointer to variable that will receive the return error code from this function.

FTPc_ERR_NONE
FTPc_ERR_TX_CMD
FTPc_ERR_RX_CMD_RESP_FAIL

Returned Values

DEF_OK, File successfully sent;
DEF_FAIL, otherwise.

Required Configuration

None.

Notes / Warnings

  • This function can be used when no File System is present to transmit file from a memory buffer.

Example Usage

  • No labels