NTP Examples: revert obsolete comment and updated Time example (#6073)

* Revert "Examples update, add a note for configTime() that only one ntp server is supported by lwip",
fixed in espressif/esp32-arduino-lib-builder#51

This reverts commit 6b1020967a171c549b3d956825fd0d395de9cce0.

* SimpleTime: add NTPoDHCP option and TimeZone env variable
This commit is contained in:
vortigont
2022-01-17 17:09:58 +03:00
committed by GitHub
parent c014eaf352
commit b3b3403296
8 changed files with 43 additions and 40 deletions

View File

@ -17,10 +17,6 @@ WiFiMulti WiFiMulti;
// Set time via NTP, as required for x.509 validation
void setClock() {
/*
Note: Bundled Arduino lwip supports only ONE ntp server, 2nd and 3rd options are silently ignored
see CONFIG_LWIP_DHCP_MAX_NTP_SERVERS define in ./tools/sdk/esp32/sdkconfig
*/
configTime(0, 0, "pool.ntp.org", "time.nist.gov"); // UTC
Serial.print(F("Waiting for NTP time sync: "));