1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00

add dns_no argument to dnsIP() int ESP8266WiFi class

This commit is contained in:
Martin Ayotte 2015-10-18 14:22:24 -04:00
parent 7f318d72cf
commit 6436a175c4
2 changed files with 3 additions and 3 deletions

View File

@ -370,9 +370,9 @@ IPAddress ESP8266WiFiClass::gatewayIP()
return IPAddress(ip.gw.addr); return IPAddress(ip.gw.addr);
} }
IPAddress ESP8266WiFiClass::dnsIP() IPAddress ESP8266WiFiClass::dnsIP(int dns_no)
{ {
ip_addr_t dns_ip = dns_getserver(0); ip_addr_t dns_ip = dns_getserver(dns_no);
return IPAddress(dns_ip.addr); return IPAddress(dns_ip.addr);
} }

View File

@ -173,7 +173,7 @@ public:
* *
* return: DNS ip address value * return: DNS ip address value
*/ */
IPAddress dnsIP(); IPAddress dnsIP(int dns_no = 0);
/* /*
* Return the current SSID associated with the network * Return the current SSID associated with the network