...
Anchor
#define FTPs_CFG_CTRL_IPPORT 21
#define FTPs_CFG_DATA_IPPORT 20
anchor#define FTPs_CFG_CTRL_IPPORT_SECURE 990
#define FTPs_CFG_DATA_IPPORT_SECURE 989
Define respectively the TCP port µC/FTPs will listen for requests. The default value is 21 for the control socket, and 20 for the data transfer socket. For secure operations, the default value is 990 for the control socket, and 989 for the deta transfer socket.
...
#define FTPs_CFG_CTRL_MAX_RX_TIMEOUT_MS 30000
#define FTPs_CFG_CTRL_MAX_TX_TIMEOUT_MS 5000
#define FTPs_CFG_DTP_MAX_ACCEPT_TIMEOUT_MS 5000
#define FTPs_CFG_DTP_MAX_CONN_TIMEOUT_MS 5000
#define FTPs_CFG_DTP_MAX_RX_TIMEOUT_MS 5000
#define FTPs_CFG_DTP_MAX_TX_TIMEOUT_MS 5000
These values define the timeout values (in milliseconds) for control and data transfer sockets. Since the control socket may not receive commands for a while, the timeout can be longer. However, this FTP server is limited to one client at a time. If a client gets stuck, it may take a while before the server will release the socket. So we recommend you to keep the control socket connection timeout low and activate the “keep-alive” functions of your FTP client, which send
...
“NOOP
” command periodically.
...
#define FTPs_CFG_CTRL_MAX_RX_RETRY 3
#define FTPs_CFG_CTRL_MAX_TX_RETRY 3
#define FTPs_CFG_DTP_MAX_ACCEPT_RETRY 3
#define FTPs_CFG_DTP_MAX_CONN_RETRY 3
#define FTPs_CFG_DTP_MAX_RX_RETRY 3
#define FTPs_CFG_DTP_MAX_TX_RETRY 3
These values define the maximum number of retries when a request fails before returning an error to the application.
...
#define FTPs_CFG_MAX_PASS_LEN 32
These values define the maximum length of user and password the FTP client will transfer to the application for authentication.
...
#define FTPs_CFG_FS_PATH_LEN_MAX 256
#define FTPs_CFG_FS_NAME_LEN_MAX 256 Anchor
These values define the maximum length of file system path and file name.