Closed CSpyridakis closed 4 years ago
I had to also specify the DNS server.
IPAddress ip(192, 168, 1, X);
IPAddress dns( X, X, X, X );
IPAddress gateway(192, 168, 1, X);
IPAddress subnet(255, 255, 255, 0);
WiFi.config(ip, dns, gateway, subnet);
I am really sorry for the unnecessary issue!
If I try to give a static IP by using WiFi.config() timeClient could not be updated. Whenever I comment out this line everything works as expected.
Details
Sample code