Skip to end of metadata
Go to start of metadata

This section describes the examples that are related to the Micrium OS FTP Client module.

Send Data from a buffer to a file on an FTP Server

Description

This is a simple example that sends the data, Ex_FTP_ClientData to the public FTP, speedtest.tele2.net, located at "upload/datamicriumos.bin". 

Configuration

None

Location

  • /examples/net/ftp/ex_ftp_client.c
  • /examples/net/ftp/ex_ftp_client.h

API

APIDescription

Ex_FTP_ClientSendData()

Send the data (Ex_FTP_ClientData) to a public FTP, located at "upload/datamicriumos.bin". 

Upload a file to an FTP Server

Description

This is a simple example that sends a file from the File system to an FTP server.

Configuration

Mandatory

The following #define must be added in ex_description.h to allow other examples to initialize the SNTP Client module correctly:

#defineDefault valueDescription
EX_FTP_CLIENT_SEND_FILE_LOCAL_PATH"local_file.txt"Specify the file path to upload
EX_FTP_CLIENT_SEND_FILE_REMOTE_NAME"remote_file.txt"Specify the remote file path


Location

  • /examples/net/ftp/ex_ftp_client.c
  • /examples/net/ftp/ex_ftp_client.h

API

APIDescription

Ex_FTP_ClientSendFile()

Send a file to a public FTP, speedtest.tele2.net, located at "upload/datamicriumos.bin". 

Receive a file into a buffer

Description

This is a simple example that downloads a file; 1KB.zip, from the public FTP server; speedtest.tele2.net

Configuration

None.

Location

  • /examples/net/ftp/ex_ftp_client.c
  • /examples/net/ftp/ex_ftp_client.h

API

APIDescription

Ex_FTP_ClientReceiveData()

Download a file in a local buffer.

Download a file from an FTP server

Description

This is a simple example that downloads a file; 1KB.zip, from the public FTP server; speedtest.tele2.net

Configuration

Mandatory

The following #define must be added in ex_description.h to allow other examples to initialize the SNTP Client module correctly:

#defineDefault valueDescription
EX_FTP_CLIENT_RECEIVE_FILE_LOCAL_PATH"file_1KB.zip"Specify the download file path

Location

  • /examples/net/ftp/ex_ftp_client.c
  • /examples/net/ftp/ex_ftp_client.h

API

APIDescription

Ex_FTP_ClientReceiveFile()

Download a file.