nRF Connect SDK API 0.1.0
|
Library for FTP client. More...
Macros | |
#define | FTP_PRELIMINARY_POS(code) (code > 100 && code < 200) |
#define | FTP_COMPLETION_POS(code) (code > 200 && code < 300) |
#define | FTP_INTERMEDIATE_POS(code) (code > 300 && code < 400) |
#define | FTP_TRANSIENT_NEG(code) (code > 400 && code < 500) |
#define | FTP_COMPLETION_NEG(code) (code > 500 && code < 600) |
#define | FTP_PROTECTED(code) (code > 600 && code < 700) |
#define | FTP_PROPRIETARY(code) (code > 900 && code < 1000) |
#define | FTP_WINSOCK_ERR(code) (code > 10000) |
Typedefs | |
typedef void(* | ftp_client_callback_t) (const uint8_t *msg, uint16_t len) |
FTP asynchronous callback function. | |
Functions | |
int | ftp_init (ftp_client_callback_t ctrl_callback, ftp_client_callback_t data_callback) |
Initialize the FTP client library. | |
int | ftp_uninit (void) |
Uninitialize the FTP client library. | |
int | ftp_open (const char *hostname, uint16_t port, int sec_tag) |
Open FTP connection. | |
int | ftp_login (const char *username, const char *password) |
FTP server login. | |
int | ftp_close (void) |
Close FTP connection. | |
int | ftp_status (void) |
Get FTP server and connection status Also returns server system type. | |
int | ftp_type (enum ftp_trasfer_type type) |
Set FTP transfer type. | |
int | ftp_pwd (void) |
Print working directory. | |
int | ftp_list (const char *options, const char *target) |
List information of folder or file. | |
int | ftp_cwd (const char *folder) |
Change working directory. | |
int | ftp_mkd (const char *folder) |
Make directory. | |
int | ftp_rmd (const char *folder) |
Remove directory. | |
int | ftp_rename (const char *old_name, const char *new_name) |
Rename a file. | |
int | ftp_delete (const char *file) |
Delete a file. | |
int | ftp_get (const char *file) |
Get a file. | |
int | ftp_put (const char *file, const uint8_t *data, uint16_t length, int type) |
Put data to a file If file does not exist, create the file. | |
Library for FTP client.
Provide selected FTP client functionality