Update NtpClientLib and use NTP_TIMEOUT (#452)

This commit is contained in:
Xose Pérez
2018-03-13 08:52:08 +01:00
parent c69d47acd3
commit d4eb64ca7e
3 changed files with 3 additions and 1 deletions

View File

@@ -834,6 +834,7 @@ PROGMEM const char* const custom_reset_string[] = {
#endif
#define NTP_SERVER "pool.ntp.org" // Default NTP server
#define NTP_TIMEOUT 2000 // Set NTP request timeout to 2 seconds (issue #452)
#define NTP_TIME_OFFSET 1 // Default timezone offset (GMT+1)
#define NTP_DAY_LIGHT true // Enable daylight time saving by default
#define NTP_SYNC_INTERVAL 60 // NTP initial check every minute

View File

@@ -36,6 +36,7 @@ void _ntpStart() {
NTP.begin(getSetting("ntpServer", NTP_SERVER));
NTP.setInterval(NTP_SYNC_INTERVAL, NTP_UPDATE_INTERVAL);
NTP.setNTPTimeout(NTP_TIMEOUT);
_ntpConfigure();
}

View File

@@ -27,7 +27,7 @@ lib_deps =
https://github.com/madpilot/mDNSResolver#4cfcda1
https://github.com/xoseperez/my92xx#3.0.1
https://bitbucket.org/xoseperez/nofuss.git#0.2.5
https://github.com/xoseperez/NtpClient.git#b35e249
https://github.com/gmag11/NtpClient.git#10ece38
OneWire
PMS Library
PZEM004T