Using the new Arduino IDE for ESP8266 and found bugs, report them here

Moderator: igrr

User avatar
By khoih-prog
#92923 This is actually a bug in the program in https://www.geekstips.com/arduino-time- ... p8266-udp/, it'll be OK if you fix it by changing from

Code: Select all// send an NTP request to the time server at the given address
unsigned long sendNTPpacket(IPAddress& address)


to

Code: Select all// send an NTP request to the time server at the given address
void sendNTPpacket(IPAddress& address)


It'll much better from now on, you turn on Arduino IDE File -> Preferences -> Settings -> Compiler Warnings to All instead of None to catch all the code issues.

Tested OK (no crash) with core v3.0.2 now after modification.