Skip to content

Commit fee2f3b

Browse files
andreagilardonipennam
authored andcommitted
WiFi fixes
1 parent be1c7a6 commit fee2f3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arduino/libraries/WiFi/src/WiFi.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
#include <esp_wifi.h>
2323
#include <esp_wpa2.h>
24-
#include <tcpip_adapter.h>
24+
#include <esp_netif.h>
2525

2626
#include <lwip/apps/sntp.h>
2727
#include <lwip/dns.h>
@@ -462,7 +462,7 @@ uint32_t WiFiClass::gatewayIP()
462462

463463
uint32_t WiFiClass::dnsIP(int n)
464464
{
465-
return dns_getserver(n).u_addr.ip4.addr;
465+
return dns_getserver(n)->u_addr.ip4.addr;
466466
}
467467

468468
char* WiFiClass::SSID()

0 commit comments

Comments
 (0)