mirror of
https://github.com/espressif/esp-idf.git
synced 2025-11-21 19:09:13 +00:00
Examples/lwip: sntp example - Make SNTP server configurable
Also updates NTP example test to allow more attempts
This commit is contained in:
@@ -183,8 +183,8 @@ static void initialize_sntp(void)
|
||||
#endif /* LWIP_IPV6 */
|
||||
|
||||
#else /* LWIP_DHCP_GET_NTP_SRV && (SNTP_MAX_SERVERS > 1) */
|
||||
// otherwise use DNS address from a pool
|
||||
sntp_setservername(0, "pool.ntp.org");
|
||||
// otherwise, use DNS address from a pool
|
||||
sntp_setservername(0, CONFIG_SNTP_TIME_SERVER);
|
||||
#endif
|
||||
|
||||
sntp_set_time_sync_notification_cb(time_sync_notification_cb);
|
||||
|
||||
Reference in New Issue
Block a user