Versions Compared

Key

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

...

µC/TFTPc requires a run-time configuration that must be passed during the initialization. TFTPc run-time configuration template file is provided (see Directories and Files). The run-time configuration template file  (tftp-c_cfg.c ) should be copied into the application folder and modified as per individual project requirements. 


Code Block
languagecpp
titleListing - µC/TFTPc Configuration Structure
linenumberstrue
const  TFTPc_CFG  TFTPc_Cfg = {
/*
*--------------------------------------------------------------------------------------------------------
*                                    TFTP SERVER CONFIGURATION
*--------------------------------------------------------------------------------------------------------
*/
                                                        /* TFTP Server hostname or IP address.                          */
        "192.168.1.100",
                                                        /* TFTP Server port number.                                     */
         69,
                                                        /* Select IP family of address when DNS resolution is used:     */
         NET_IP_ADDR_FAMILY_NONE,
                                                        /* NET_IP_ADDR_FAMILY_NONE: No preference between IPv6 and IPv4.*/
                                                        /* NET_IP_ADDR_FAMILY_IPv4: Only IPv4 addr will be returned.    */
                                                        /* NET_IP_ADDR_FAMILY_IPv6: Only IPv6 addr will be returned.    */
/*
*--------------------------------------------------------------------------------------------------------
*                                     TIMEOUT CONFIGURATION
*--------------------------------------------------------------------------------------------------------
*/
         5000,                                          /* Maximum inactivity time (ms) on RX.                          */
         5000                                           /* Maximum inactivity time (ms) on TX.                          */
};