picow-http 0.12.1-4-g9d4fd13
HTTP server for the Raspberry Pi PicoW
ntp_cfg Struct Reference

NTP configuration. More...

#include </builds/korneliuszo/picow_http/include/picow_http/ntp.h>

Data Fields

const char * servers
 
unsigned response_tmo_s
 
unsigned retry_intvl_s
 
unsigned dns_tmo_s
 
unsigned refresh_intvl_s
 

Detailed Description

See also
ntp_default_cfg(), struct server_cfg

Field Documentation

◆ dns_tmo_s

unsigned ntp_cfg::dns_tmo_s

Response timeout in seconds for DNS resolution of the NTP server hostname

◆ refresh_intvl_s

unsigned ntp_cfg::refresh_intvl_s

NTP refresh interval in seconds. After an NTP synchronization succeeds and then this interval elapses, a new NTP client request is sent (to minimize clock drift).

The minimum refresh interval is 64 seconds. Lower values are silently set to the minimum.

◆ response_tmo_s

unsigned ntp_cfg::response_tmo_s

NTP client response timeout in seconds

◆ retry_intvl_s

unsigned ntp_cfg::retry_intvl_s

NTP retry interval in seconds. Failed operations (such as an NTP client request or DNS lookups) are re-attempted after this interval.

◆ servers

const char* ntp_cfg::servers

Whitespace-separated list of NTP server addresses; may be host names or IP addresses. MAY NOT be NULL.


The documentation for this struct was generated from the following file: