![]() |
nRF Connect SDK API 3.2.99
|
Library for FTP client. More...
Macros | |
| #define | FTP_PRELIMINARY_POS(code) |
| #define | FTP_COMPLETION_POS(code) |
| #define | FTP_INTERMEDIATE_POS(code) |
| #define | FTP_TRANSIENT_NEG(code) |
| #define | FTP_COMPLETION_NEG(code) |
| #define | FTP_PROTECTED(code) |
| #define | FTP_PROPRIETARY(code) |
| #define | FTP_WINSOCK_ERR(code) |
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