Search found 1 match

by SlemiELK
Mon Jul 01, 2019 4:57 pm
Forum: ESP32 Arduino
Topic: Cannot connect to NTP server with fixed IP
Replies: 7
Views: 17019

Re: Cannot connect to NTP server with fixed IP

Hi!

I also had problems with this. The following code solved it:
IPAddress ip(*,*,*,*);
IPAddress gateway(*,*,*,*,);
IPAddress subnet(*,*,*,*);
IPAddress dns1(*,*,*,*);
IPAddress dns2(*,*,*,*);
WiFi.config(ip, gateway, subnet, dns1, dns2); //This is important! Include dns1 and dns2 when configuring ...

Go to advanced search