diff --git a/examples/protocols/sntp/main/sntp_example_main.c b/examples/protocols/sntp/main/sntp_example_main.c index c1f899e491..cada529e83 100644 --- a/examples/protocols/sntp/main/sntp_example_main.c +++ b/examples/protocols/sntp/main/sntp_example_main.c @@ -185,6 +185,8 @@ static void initialize_sntp(void) #else /* LWIP_DHCP_GET_NTP_SRV && (SNTP_MAX_SERVERS > 1) */ // otherwise, use DNS address from a pool sntp_setservername(0, CONFIG_SNTP_TIME_SERVER); + + sntp_setservername(1, "pool.ntp.org"); // set the secondary NTP server (will be used only if SNTP_MAX_SERVERS > 1) #endif sntp_set_time_sync_notification_cb(time_sync_notification_cb); diff --git a/examples/protocols/sntp/sdkconfig.ci b/examples/protocols/sntp/sdkconfig.ci new file mode 100644 index 0000000000..a4c701a007 --- /dev/null +++ b/examples/protocols/sntp/sdkconfig.ci @@ -0,0 +1,2 @@ +CONFIG_SNTP_TIME_SERVER="time.windows.com" +CONFIG_LWIP_SNTP_MAX_SERVERS=2