34 #include "lwip/sockets.h"
45 #define SNTP_SUPPORT_MULTIPLE_SERVERS 1
46 #if SNTP_SUPPORT_MULTIPLE_SERVERS
47 #define SNTP_MAX_SERVERS 3
49 #ifndef SNTP_RECV_TIMEOUT
50 #define SNTP_RECV_TIMEOUT 3000
52 #define SNTP_RETRY_TIMEOUT SNTP_RECV_TIMEOUT
53 #define SNTP_RETRY_TIMES 3
55 #define SNTP_SERVER_ADDRESS "pool.ntp.org"
77 #if SNTP_SUPPORT_MULTIPLE_SERVERS
95 #ifdef USE_RECORD_CALENDAR_TIME
101 void update_calendar_time_from_file(
void);
108 void record_calendar_time(
long long ms);
sntp_time * sntp_obtain_time(void)
int sntp_last_query_status(void)
int sntp_set_server(uint8_t idx, char *server_name)
int sntp_request(void *arg)
int sntp_get_time(sntp_arg *arg, struct timeval *ntp_time)
int sntp_set_time_direct(long long now_ms)