Versions Compared

Key

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

The µC/FTPc module has to be configured according to your specific needs. A template configuration file (ftp-c_cfg.h) is included in the module package (see section Directories and Files), and this configuration should be copied into your application directory and included to your project. Here is the list of the values and description of each of the configuration variable. However, keep in mind that future releases of this module might include more configuration options.


#define FTPc_CFG_CTRL_MAX_CONN_TIMEOUT_MS

5000
#define

FTPc_CFG_CTRL_MAX_RX_TIMEOUT_MS

5000
#define

FTPc_CFG_CTRL_MAX_TX_TIMEOUT_MS

5000

#define  FTPc_CFG_DTP_MAX_CONN_TIMEOUT_MS	               5000
#define FTPc_CFG_DTP_MAX_RX_TIMEOUT_MS 5000
#define FTPc_CFG_DTP_MAX_TX_TIMEOUT_MS 5000

These values define the timeout values (in seconds) for control and data transfer sockets. If the server doesn’t reply back in this amount of time after a request, the request will be aborted.

#define FTPc_CFG_CTRL_MAX_TX_RETRY 3
#define FTPc_CFG_DTP_MAX_TX_RETRY 3

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

#define FTPc_CFG_CTRL_MAX_RX_DLY_MS 100u
#define FTPc_CFG_CTRL_MAX_TX_DLY_MS 100u
#define FTPc_CFG_DTP_MAX_TX_DLY_MS 100u

This values define the delay between each retry.

 

 

#define FTPc_CFG_USE_FS 1

This value controls the integration between µC/FTPc and µC/FS. If value is 1, functions using µC/FS are compiled and enabled. If value is 0, no File System functions are available to the application.

#define FTPc_CFG_COMMON_NAME_MAX_LEN 256

This values define the maximum length of the secure configuration’s common name.