Trivial File Transfer Protocol (TFTP) Client#

The TFTP Client facilitates file exchange between a client and any remote host over UDP. This component provides an easy-to-use solution for downloading and uploading files from a remote host. The TFTP client can be initialized with sl_tftp_clnt_init(), and the functions sl_tftp_clnt_get() and sl_tftp_clnt_put() can be used to download and upload files, respectively. Additionally, the block size and timeout options can be configured to negotiate between the server and the client, optimizing the transmission. The component implements the TFTP protocol as specified in RFC 1350.

To ensure proper functionality, a TFTP server, such as tftpd-hpa, must be prepared on the remote host.

The following code example shows how to download a file with TFTP Client:

#include "sl_tftp_clnt.h"

// TFTP data callback
// In this callback you can implement storing data chunks to flash, heap or any other memory.
static void tftp_data_hnd(sl_tftp_clnt_t * const clnt,
                          const uint8_t * const data_ptr,
                          const uint16_t data_size) {
  (void)data_ptr;
  (void)data_size;
  printf("Data received chunk %u (%u bytes)\n",
         clnt->packet.content.data.block_num,
         clnt->packet.content.data.data_size);
}

// TFTP error callback
// You can implement error handling in this callback.
static void tftp_error_hnd(sl_tftp_clnt_t * const clnt,
                           const uint16_t error_code,
                           const char *error_msg) {
  (void)clnt;
  printf("Error (%u): %s\n", error_code, error_msg);
}

static void tftp_get_file(void) {
  static sl_tftp_clnt_t tftp_clnt = { 0 };

  // Initialize Client instance
  if (sl_tftp_clnt_init(&tftp_clnt,
                        "2001:db8::1",
                        SL_TFTP_DEFAULT_HOST_PORT,
                        tftp_data_hnd,
                        tftp_error_hnd) != SL_STATUS_OK) {
    // Error handling
    return;
  }

  // Set blocksize option
  if (sl_tftp_clnt_set_option(&tftp_clnt,
                              SL_TFTP_OPT_EXT_BLOCKSIZE,
                              1228) != SL_STATUS_OK) {
    // Error handling
    return;
  }

  // Start to download a file
  if (sl_tftp_clnt_get(&tftp_clnt,
                       "test.txt") != SL_STATUS_OK) {
    // Error handling
    return;
  }

  while (1) {
    if (sl_tftp_clnt_is_op_finished(&tftp_clnt)) {
      printf("File download finished\n");
      break;
    }
    osDelay(1);
  }
}

Modules#

Configurations

Type definitions

Portable interface

Typedefs#

typedef void(*
sl_tftp_clnt_data_hnd_t)(sl_tftp_clnt_t *const clnt, const uint8_t *const data_ptr, const uint16_t data_size)

Data handler callback definition.

typedef void(*
sl_tftp_clnt_error_hnd_t)(sl_tftp_clnt_t *const clnt, const uint16_t error_code, const char *error_msg)

Error handler callback defintion.

Functions#

__STATIC_INLINE sl_status_t
sl_tftp_clnt_default_init(sl_tftp_clnt_t *const clnt)

Init TFTP Client default.

__STATIC_INLINE sl_status_t
sl_tftp_clnt_get(sl_tftp_clnt_t *const clnt, const char *file)

TFT Client Get.

sl_status_t
sl_tftp_clnt_init(sl_tftp_clnt_t *const clnt, const char *host, const uint16_t port, sl_tftp_clnt_data_hnd_t data_hnd, sl_tftp_clnt_error_hnd_t error_hnd)

Init TFTP Client.

bool
sl_tftp_clnt_is_op_finished(const sl_tftp_clnt_t *const clnt)

TFTP Client is finished operation.

bool
sl_tftp_clnt_is_op_get(const sl_tftp_clnt_t *const clnt)

TFTP Client is Get operation.

bool
sl_tftp_clnt_is_op_put(const sl_tftp_clnt_t *const clnt)

TFTP Client is Put operation.

bool
sl_tftp_clnt_is_op_rrq_wrq_failed(const sl_tftp_clnt_t *const clnt)

TFTP Client is RRQ or WRQ failed.

void
sl_tftp_clnt_print_pkt(const sl_tftp_pkt_t *const pkt)

Print packet.

__STATIC_INLINE sl_status_t
sl_tftp_clnt_put(sl_tftp_clnt_t *const clnt, const char *file)

TFT Client Put.

sl_status_t
sl_tftp_clnt_request(sl_tftp_clnt_t *const clnt, const uint16_t opcode, const char *file, const char *mode)

TFTP Client request.

void

Init TFTP Client service.

sl_status_t
sl_tftp_clnt_set_option(sl_tftp_clnt_t *const clnt, const char *opt, const uint32_t value)

Set TFTP Client option.

sl_status_t
sl_tftp_clnt_terminate_session(sl_tftp_clnt_t *const clnt)

TFTP Client terminate session.

Macros#

#define

TFTP Default data block size.

#define

Default TFTP host port.

#define

TFTP Default server retransmit timeout interval in seconds.

#define

Access violation.

#define

Disk full or allocation exceeded.

#define

File already exists.

#define

File not found.

#define

Illegal TFTP operation.

#define

Not defined, see error message (if any).

#define

No such user.

#define

Terminate transfer due to option negotiation.

#define

Unknown transfer ID.

#define

Netascii mode string.

#define

Netascii mode string length.

#define

Octet mode string.

#define

Octet mode string length.

#define

TFTP Acknowledgement operation code.

#define

TFTP Data operation code.

#define

TFTP Error operation code.

#define

TFTP Option Acknowledgement operation code.

#define

TFTP Read Request operation code.

#define

TFTP Write Request operation code.

#define

TFTP Blocksize Option.

#define

TFTP Blocksize Option length.

#define

TFTP Multicast Option.

#define

TFTP Multicast Option length.

#define

TFTP Timeout Interval Option.

#define

TFTP Timeout Interval Option length.

#define

TFTP Transfer Size Option.

#define

TFTP Transfer Size Option length.

#define

TFTP Windowsize Option.

#define

TFTP Windowsize Option length.

#define

TFTP receive timeout.

#define

TFTP Service loop definition.

#define

TFTP string max length (filename, mode)

Typedef Documentation#

sl_tftp_clnt_data_hnd_t#

typedef void(* sl_tftp_clnt_data_hnd_t) (sl_tftp_clnt_t *const clnt, const uint8_t *const data_ptr, const uint16_t data_size) )(sl_tftp_clnt_t *const clnt, const uint8_t *const data_ptr, const uint16_t data_size)

Data handler callback definition.


Definition at line 247 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

sl_tftp_clnt_error_hnd_t#

typedef void(* sl_tftp_clnt_error_hnd_t) (sl_tftp_clnt_t *const clnt, const uint16_t error_code, const char *error_msg) )(sl_tftp_clnt_t *const clnt, const uint16_t error_code, const char *error_msg)

Error handler callback defintion.


Definition at line 252 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

Function Documentation#

sl_tftp_clnt_default_init#

__STATIC_INLINE sl_status_t sl_tftp_clnt_default_init (sl_tftp_clnt_t *const clnt)

Init TFTP Client default.

Parameters
[inout]clnt

Client to initialize

Initialize Client with default values from config file parameters: host: SL_TFTP_CLNT_DEFAULT_HOST port: SL_TFTP_DEFAULT_HOST_PORT data_hnd: simple hex dump callback error_hnd: error code and message printer Returns

  • sl_status_t SL_STATUS_OK on success, otherwise SL_STATUS_FAIL


Definition at line 292 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

sl_tftp_clnt_get#

__STATIC_INLINE sl_status_t sl_tftp_clnt_get (sl_tftp_clnt_t *const clnt, const char * file)

TFT Client Get.

Parameters
[inout]clnt

Client

[in]file

File name

Get file from server in octet mode Returns

  • sl_status_t SL_STATUS_OK on success, otherwise SL_STATUS_FAIL


Definition at line 342 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

sl_tftp_clnt_init#

sl_status_t sl_tftp_clnt_init (sl_tftp_clnt_t *const clnt, const char * host, const uint16_t port, sl_tftp_clnt_data_hnd_t data_hnd, sl_tftp_clnt_error_hnd_t error_hnd)

Init TFTP Client.

Parameters
[inout]clnt

Client to initialize

[in]host

Host address string

[in]port

Port number

[in]data_hnd

Data handler callback

[in]error_hnd

Error handler callback

Initialize TFTP Client context Returns

  • sl_status_t SL_STATUS_OK on success, otherwise SL_STATUS_FAIL


Definition at line 276 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

sl_tftp_clnt_is_op_finished#

bool sl_tftp_clnt_is_op_finished (const sl_tftp_clnt_t *const clnt)

TFTP Client is finished operation.

Parameters
[in]clnt

Client

Check read or write operations wheither is in progress Returns

  • true Is finished

  • false Is in progress


Definition at line 376 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

sl_tftp_clnt_is_op_get#

bool sl_tftp_clnt_is_op_get (const sl_tftp_clnt_t *const clnt)

TFTP Client is Get operation.

Parameters
[in]clnt

Client

Check Read operation is in progress Returns

  • true Is in progress otherwise false


Definition at line 384 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

sl_tftp_clnt_is_op_put#

bool sl_tftp_clnt_is_op_put (const sl_tftp_clnt_t *const clnt)

TFTP Client is Put operation.

Parameters
[in]clnt

Client

Check Write operation is in progress Returns

  • true Is in progress otherwise false


Definition at line 392 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

sl_tftp_clnt_is_op_rrq_wrq_failed#

bool sl_tftp_clnt_is_op_rrq_wrq_failed (const sl_tftp_clnt_t *const clnt)

TFTP Client is RRQ or WRQ failed.

Parameters
[in]clnt

Client

Check Read or Write Request operation is failed Returns

  • true Is failed otherwise false


Definition at line 400 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

sl_tftp_clnt_print_pkt#

void sl_tftp_clnt_print_pkt (const sl_tftp_pkt_t *const pkt)

Print packet.

Parameters
[in]pkt

Packet to print

Print packet info in json format


Definition at line 304 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

sl_tftp_clnt_put#

__STATIC_INLINE sl_status_t sl_tftp_clnt_put (sl_tftp_clnt_t *const clnt, const char * file)

TFT Client Put.

Parameters
[inout]clnt

Client

[in]file

File name to store data

Send buffer content to file on remote server Returns

  • sl_status_t SL_STATUS_OK on success, otherwise SL_STATUS_FAIL


Definition at line 363 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

sl_tftp_clnt_request#

sl_status_t sl_tftp_clnt_request (sl_tftp_clnt_t *const clnt, const uint16_t opcode, const char * file, const char * mode)

TFTP Client request.

Parameters
[inout]clnt

Client

[in]opcode

Operation code: SL_TFTP_OPCODE_RRQ or SL_TFTP_OPCODE_WRQ

[in]file

File name to put or get

[in]mode

Mode string

Send request for Server (RRQ or WRQ) Returns

  • sl_status_t SL_STATUS_OK on success, otherwise SL_STATUS_FAIL


Definition at line 330 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

sl_tftp_clnt_service_init#

void sl_tftp_clnt_service_init (void )

Init TFTP Client service.

Parameters
N/A

Initialize TFTP client OS objects


Definition at line 264 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

sl_tftp_clnt_set_option#

sl_status_t sl_tftp_clnt_set_option (sl_tftp_clnt_t *const clnt, const char * opt, const uint32_t value)

Set TFTP Client option.

Parameters
[inout]clnt

Client

[in]opt

Option string

[in]value

Option value

Set TFTP Client option in the TFTP client instance. The supported options are:

  • SL_TFTP_OPT_EXT_BLOCKSIZE: Blocksize option (8 - 1228 for Wi-SUN)

  • SL_TFTP_OPT_EXT_TIMEOUT_INTERVAL: Timeout interval option (1 - 255) Returns

    • sl_status_t SL_STATUS_OK on success, otherwise SL_STATUS_FAIL


Definition at line 317 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

sl_tftp_clnt_terminate_session#

sl_status_t sl_tftp_clnt_terminate_session (sl_tftp_clnt_t *const clnt)

TFTP Client terminate session.

Parameters
[inout]clnt

Client

Terminate TFTP session Returns

  • sl_status_t SL_STATUS_OK on success, otherwise SL_STATUS_FAIL


Definition at line 354 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

Macro Definition Documentation#

SL_TFTP_DEFAULT_DATA_BLOCK_SIZE#

#define SL_TFTP_DEFAULT_DATA_BLOCK_SIZE
Value:
512U

TFTP Default data block size.


Definition at line 63 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

SL_TFTP_DEFAULT_HOST_PORT#

#define SL_TFTP_DEFAULT_HOST_PORT
Value:
69U

Default TFTP host port.


Definition at line 60 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

SL_TFTP_DEFAULT_SRV_RET_TIMEOUT_SEC#

#define SL_TFTP_DEFAULT_SRV_RET_TIMEOUT_SEC
Value:
1U

TFTP Default server retransmit timeout interval in seconds.


Definition at line 66 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

SL_TFTP_ERROCODE_ACCVIOL#

#define SL_TFTP_ERROCODE_ACCVIOL
Value:
2U

Access violation.


Definition at line 122 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

SL_TFTP_ERROCODE_DISKFULL#

#define SL_TFTP_ERROCODE_DISKFULL
Value:
3U

Disk full or allocation exceeded.


Definition at line 124 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

SL_TFTP_ERROCODE_FEXIST#

#define SL_TFTP_ERROCODE_FEXIST
Value:
6U

File already exists.


Definition at line 130 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

SL_TFTP_ERROCODE_FNOTFOUND#

#define SL_TFTP_ERROCODE_FNOTFOUND
Value:
1U

File not found.


Definition at line 120 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

SL_TFTP_ERROCODE_ILLEGALOP#

#define SL_TFTP_ERROCODE_ILLEGALOP
Value:
4U

Illegal TFTP operation.


Definition at line 126 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

SL_TFTP_ERROCODE_NOTDEF#

#define SL_TFTP_ERROCODE_NOTDEF
Value:
0U

Not defined, see error message (if any).


Definition at line 118 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

SL_TFTP_ERROCODE_NOUSR#

#define SL_TFTP_ERROCODE_NOUSR
Value:
7U

No such user.


Definition at line 132 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

SL_TFTP_ERROCODE_OPTNEGOTFAIL#

#define SL_TFTP_ERROCODE_OPTNEGOTFAIL
Value:
8U

Terminate transfer due to option negotiation.


Definition at line 134 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

SL_TFTP_ERROCODE_UNKNTID#

#define SL_TFTP_ERROCODE_UNKNTID
Value:
5U

Unknown transfer ID.


Definition at line 128 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

SL_TFTP_MODE_NETASCII_STR#

#define SL_TFTP_MODE_NETASCII_STR
Value:
"netascii"

Netascii mode string.


Definition at line 75 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

SL_TFTP_MODE_NETASCII_STR_LEN#

#define SL_TFTP_MODE_NETASCII_STR_LEN
Value:
8U

Netascii mode string length.


Definition at line 79 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

SL_TFTP_MODE_OCTET_STR#

#define SL_TFTP_MODE_OCTET_STR
Value:
"octet"

Octet mode string.


Definition at line 77 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

SL_TFTP_MODE_OCTET_STR_LEN#

#define SL_TFTP_MODE_OCTET_STR_LEN
Value:
5U

Octet mode string length.


Definition at line 81 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

SL_TFTP_OPCODE_ACK#

#define SL_TFTP_OPCODE_ACK
Value:
4U

TFTP Acknowledgement operation code.


Definition at line 111 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

SL_TFTP_OPCODE_DATA#

#define SL_TFTP_OPCODE_DATA
Value:
3U

TFTP Data operation code.


Definition at line 109 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

SL_TFTP_OPCODE_ERROR#

#define SL_TFTP_OPCODE_ERROR
Value:
5U

TFTP Error operation code.


Definition at line 113 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

SL_TFTP_OPCODE_OACK#

#define SL_TFTP_OPCODE_OACK
Value:
6U

TFTP Option Acknowledgement operation code.


Definition at line 115 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

SL_TFTP_OPCODE_RRQ#

#define SL_TFTP_OPCODE_RRQ
Value:
1U

TFTP Read Request operation code.


Definition at line 105 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

SL_TFTP_OPCODE_WRQ#

#define SL_TFTP_OPCODE_WRQ
Value:
2U

TFTP Write Request operation code.


Definition at line 107 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

SL_TFTP_OPT_EXT_BLOCKSIZE#

#define SL_TFTP_OPT_EXT_BLOCKSIZE
Value:
"blksize"

TFTP Blocksize Option.


Definition at line 84 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

SL_TFTP_OPT_EXT_BLOCKSIZE_LEN#

#define SL_TFTP_OPT_EXT_BLOCKSIZE_LEN
Value:
7U

TFTP Blocksize Option length.


Definition at line 86 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

SL_TFTP_OPT_EXT_MULTICAST#

#define SL_TFTP_OPT_EXT_MULTICAST
Value:
"multicast"

TFTP Multicast Option.


Definition at line 88 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

SL_TFTP_OPT_EXT_MULTICAST_LEN#

#define SL_TFTP_OPT_EXT_MULTICAST_LEN
Value:
9U

TFTP Multicast Option length.


Definition at line 90 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

SL_TFTP_OPT_EXT_TIMEOUT_INTERVAL#

#define SL_TFTP_OPT_EXT_TIMEOUT_INTERVAL
Value:
"timeout"

TFTP Timeout Interval Option.


Definition at line 92 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

SL_TFTP_OPT_EXT_TIMEOUT_INTERVAL_LEN#

#define SL_TFTP_OPT_EXT_TIMEOUT_INTERVAL_LEN
Value:
7U

TFTP Timeout Interval Option length.


Definition at line 94 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

SL_TFTP_OPT_EXT_TRANSFER_SIZE#

#define SL_TFTP_OPT_EXT_TRANSFER_SIZE
Value:
"tsize"

TFTP Transfer Size Option.


Definition at line 96 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

SL_TFTP_OPT_EXT_TRANSFER_SIZE_LEN#

#define SL_TFTP_OPT_EXT_TRANSFER_SIZE_LEN
Value:
5U

TFTP Transfer Size Option length.


Definition at line 98 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

SL_TFTP_OPT_EXT_WINDOWSIZE#

#define SL_TFTP_OPT_EXT_WINDOWSIZE
Value:
"windowsize"

TFTP Windowsize Option.


Definition at line 100 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

SL_TFTP_OPT_EXT_WINDOWSIZE_LEN#

#define SL_TFTP_OPT_EXT_WINDOWSIZE_LEN
Value:
10U

TFTP Windowsize Option length.


Definition at line 102 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

SL_TFTP_RECV_TIMEOUT_MS#

#define SL_TFTP_RECV_TIMEOUT_MS
Value:
8000UL

TFTP receive timeout.


Definition at line 69 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

SL_TFTP_SERVICE_LOOP#

#define SL_TFTP_SERVICE_LOOP
Value:
while (1)

TFTP Service loop definition.


Definition at line 138 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h

SL_TFTP_STR_MAX_LEN#

#define SL_TFTP_STR_MAX_LEN
Value:
256UL

TFTP string max length (filename, mode)


Definition at line 72 of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_tftp_clnt.h