We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6fde0c commit d762543Copy full SHA for d762543
hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src/ESP8266WiFi.cpp
@@ -370,9 +370,9 @@ IPAddress ESP8266WiFiClass::gatewayIP()
370
return IPAddress(ip.gw.addr);
371
}
372
373
-IPAddress ESP8266WiFiClass::dnsIP()
+IPAddress ESP8266WiFiClass::dnsIP(int dns_no)
374
{
375
- ip_addr_t dns_ip = dns_getserver(0);
+ ip_addr_t dns_ip = dns_getserver(dns_no);
376
return IPAddress(dns_ip.addr);
377
378
hardware/esp8266com/esp8266/libraries/ESP8266WiFi/src/ESP8266WiFi.h
@@ -173,7 +173,7 @@ class ESP8266WiFiClass
173
*
174
* return: DNS ip address value
175
*/
176
- IPAddress dnsIP();
+ IPAddress dnsIP(int dns_no = 0);
177
178
/*
179
* Return the current SSID associated with the network
0 commit comments