Removed second NTP server from configTime. SNTP only uses one (#5127)
This commit is contained in:
parent
5bfbcfc91c
commit
76f0a80fe7
@ -56,7 +56,7 @@ const char* rootCACertificate = \
|
|||||||
// Not sure if WiFiClientSecure checks the validity date of the certificate.
|
// Not sure if WiFiClientSecure checks the validity date of the certificate.
|
||||||
// Setting clock just to be sure...
|
// Setting clock just to be sure...
|
||||||
void setClock() {
|
void setClock() {
|
||||||
configTime(0, 0, "pool.ntp.org", "time.nist.gov");
|
configTime(0, 0, "pool.ntp.org");
|
||||||
|
|
||||||
Serial.print(F("Waiting for NTP time sync: "));
|
Serial.print(F("Waiting for NTP time sync: "));
|
||||||
time_t nowSecs = time(nullptr);
|
time_t nowSecs = time(nullptr);
|
||||||
|
Loading…
Reference in New Issue
Block a user