Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

#define FTPs_CFG_CTRL_IPPORT 21
#define FTPs_CFG_DATA_IPPORT 20

#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.

...

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.

...

These values define the maximum number of retries when a request fails before returning an error to the application.

#define FTPs_CFG_MAX_USER_LEN 32
#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

...

Network Configuration

Control Timeout & Retry Configuration

Data Exchange Timeout & Retry Configuration

Authentication Configuration

File system Configuration