mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-18 23:03:34 +03:00
add dnsIP() to ESP8266WiFi class
This commit is contained in:
@ -370,6 +370,12 @@ IPAddress ESP8266WiFiClass::gatewayIP()
|
||||
return IPAddress(ip.gw.addr);
|
||||
}
|
||||
|
||||
IPAddress ESP8266WiFiClass::dnsIP()
|
||||
{
|
||||
ip_addr_t dns_ip = dns_getserver(0);
|
||||
return IPAddress(dns_ip.addr);
|
||||
}
|
||||
|
||||
String ESP8266WiFiClass::SSID() const
|
||||
{
|
||||
static struct station_config conf;
|
||||
|
Reference in New Issue
Block a user