madmartin / Jarolift_MQTT

Controlling Jarolift TDEF 433MHZ radio shutters via ESP8266 and CC1101 Transceiver Module in asynchronous mode
GNU General Public License v3.0
67 stars 28 forks source link

NTP won't work, if DHCP is disabled #50

Closed AIXruth closed 2 years ago

AIXruth commented 2 years ago

If I disable DHCP, NTP won't work.

I found out that global.h doesn't include a DNS in WiFi.config(ip, dns, gateway, subnet); A quick and dirty solution will be: WiFi.config(IPAddress(config.ip[0], config.ip[1], config.ip[2], config.ip[3] ), IPAddress(8,8,8,8), IPAddress(config.gateway[0], config.gateway[1], config.gateway[2], config.gateway[3] ) , IPAddress(config.netmask[0], config.netmask[1], config.netmask[2], config.netmask[3] ));

However I am working on a fix.