nRF51 IoT SDK
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
sntp_client_init_param_t Struct Reference

SNTP client initialization structure. More...

#include <sntp_client.h>

Data Fields

sntp_evt_handler_t app_evt_handler
 
uint16_t local_udp_port
 

Detailed Description

SNTP client initialization structure.

Note
app_evt_handler can be set to zero to disable callbacks.

Field Documentation

sntp_evt_handler_t sntp_client_init_param_t::app_evt_handler

Pointer to the event handler callback function. Triggered by a response from an NTP server to an SNTP query, or a retransmission timeout after SNTP_MAX_RETRANSMISSION_COUNT is reached.

uint16_t sntp_client_init_param_t::local_udp_port

Local port used by the UDP socket allocated for the SNTP client module. Cannot be NULL.