mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-25 20:02:37 +03:00
add dns_no argument to dnsIP() int ESP8266WiFi class
This commit is contained in:
parent
7f318d72cf
commit
6436a175c4
@ -370,9 +370,9 @@ IPAddress ESP8266WiFiClass::gatewayIP()
|
||||
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);
|
||||
}
|
||||
|
||||
|
@ -173,7 +173,7 @@ public:
|
||||
*
|
||||
* return: DNS ip address value
|
||||
*/
|
||||
IPAddress dnsIP();
|
||||
IPAddress dnsIP(int dns_no = 0);
|
||||
|
||||
/*
|
||||
* Return the current SSID associated with the network
|
||||
|
Loading…
x
Reference in New Issue
Block a user