-->
Page 2 of 2

Re: Upgrade to 3.0.0 broke my sketch

PostPosted: Fri Nov 26, 2021 1:05 pm
by khoih-prog
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.