picow-http 0.12.1-4-g9d4fd13
HTTP server for the Raspberry Pi PicoW
ntp.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ntp_cfg
 NTP configuration. More...
 

Macros

#define NTP_DEFAULT_SERVERS
 Default NTP server addresses. More...
 
#define NTP_DEFAULT_RESPONSE_TMO_S   (15)
 Default NTP response timeout. More...
 
#define NTP_DEFAULT_RETRY_INTVL_S   (15)
 Default NTP retry interval. More...
 
#define NTP_DEFAULT_DNS_TMO_S   (10)
 Default timeout for DNS resolution of the NTP server hostname. More...
 
#define NTP_DEFAULT_REFRESH_INTVL_S   (30000)
 Default interval for NTP refresh requests. More...
 

Functions

bool rtc_synced (void)
 Return true if the RTC has been synchronized. More...
 
static struct ntp_cfg ntp_default_cfg (void)
 Get the NTP default configuration. More...
 

Variables

static const char * wday_name []
 Weekday name abbreviations. More...
 
static const char * month_name []
 Month name abbreviations. More...
 

Detailed Description

NTP time synchronization