forked from espressif/arduino-esp32
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:
@ -160,10 +160,6 @@ void setup(){
|
||||
Serial.println("IP address: ");
|
||||
Serial.println(WiFi.localIP());
|
||||
Serial.println("Contacting Time Server");
|
||||
/*
|
||||
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(3600*timezone, daysavetime*3600, "time.nist.gov", "0.pool.ntp.org", "1.pool.ntp.org");
|
||||
struct tm tmstruct ;
|
||||
delay(2000);
|
||||
|
Reference in New Issue
Block a user