Description
Basic Infos
Hardware
Hardware: SonOFF TH10 and Adafruit HUZZAH
Core Version: 2.4.0
Description
Running on SonOFF TH10 and one Adafruit HuzZazh I got a problem with delayed first sync using the sntp client with for example this library. https://github.com/stelgenhof/NTPClient/
[NTP] First synchronization: 1970-01-01T17:00:00.
Got NTP time: 1970-01-01T17:00:00
after a while, It gets the right sync. Same problem with different time servers both local and on the internet. Using the example ntp sketch that is not using the sntp part I get the right time at once.
Problem description
Other users report no problem so I would like to debug this but have a problem to turn on the debug of sntp.
I have added
Serial.begin(115200);
Serial.setDebugOutput(true);
os_printf("hello\n");
in my sketch that is the example sketch from the above lib.
the Hello is printed out. I have also added debug outputs in lwipopts.h found in my
bin/arduino-1.8.5/hardware/esp8266com/esp8266/tools/sdk/include
as this comment state:
#2330 (comment)
But I am unable to get any DEBUG from the lwip or sntp.
What am I missing.