gmag11 / ESPNtpClient

High accuracy NTP library for ESP32 and ESP8266
MIT License
118 stars 25 forks source link

NTP never gets synched #49

Open ChristofferVokalo opened 1 year ago

ChristofferVokalo commented 1 year ago

Hej

For some reason it would appear that the getLastSynch() always returns 0, even when I have waited a couple of minuts. I test this with a simple while(NTP.getLastSynch()==0){} but it never jumps out of it. I even make sure that the wifi is connected, and I use the dk ntp pool with your pre defined TZ for copenhagen:

while ( WiFi.status() != WL_CONNECTED ) {}
NTP.setTimeZone(TZ_Europe_Copenhagen);
NTP.setInterval(500);
NTP.begin("dk.pool.ntp.org");