Establishes a connection to a FTP server.
Files
ftp-c.h/ftp-c.c
Prototype
Arguments
server_ip
Server IP address.
...
Pointer to variable that will receive the return error code from this function.
Returned Values
DEF_OK
, FTP connection successfully establishedDEF_FAIL
, otherwise.
Required Configuration
- The network security manager MUST be available and enabled to open a secure FTP connection (i.e: in “net_cfg.h”,
NET_SECURE_CFG_EN
should beDEF_ENABLED
ANDNET_CFG_TRANSPORT_LAYER_SEL
should be configured for TCP). See µC/TCPIP user manual for more information about the network security manager. - A network security module MUST be included in the project (i.e: Mocana’s NanoSSL) to use the network security manager functionalities.
Notes / Warnings
- None.