|
@ -14,7 +14,7 @@ Copyright (C) 2016-2017 by Xose Pérez <xose dot perez at gmail dot com> |
|
|
// NTP
|
|
|
// NTP
|
|
|
// -----------------------------------------------------------------------------
|
|
|
// -----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
void ntpConnect(WiFiEventStationModeGotIP ipInfo) { |
|
|
|
|
|
|
|
|
void ntpConnect() { |
|
|
NTP.begin(NTP_SERVER, NTP_TIME_OFFSET, NTP_DAY_LIGHT); |
|
|
NTP.begin(NTP_SERVER, NTP_TIME_OFFSET, NTP_DAY_LIGHT); |
|
|
NTP.setInterval(NTP_UPDATE_INTERVAL); |
|
|
NTP.setInterval(NTP_UPDATE_INTERVAL); |
|
|
} |
|
|
} |
|
@ -33,9 +33,6 @@ void ntpSetup() { |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
static WiFiEventHandler e; |
|
|
|
|
|
e = WiFi.onStationModeGotIP(ntpConnect); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void ntpLoop() { |
|
|
void ntpLoop() { |
|
|