mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-21 10:26:06 +03:00
Merge pull request #902 from martinayotte/esp8266
add dnsIP() to ESP8266WiFi class
This commit is contained in:
commit
a9f9f6d53f
@ -370,6 +370,12 @@ IPAddress ESP8266WiFiClass::gatewayIP()
|
|||||||
return IPAddress(ip.gw.addr);
|
return IPAddress(ip.gw.addr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
IPAddress ESP8266WiFiClass::dnsIP(int dns_no)
|
||||||
|
{
|
||||||
|
ip_addr_t dns_ip = dns_getserver(dns_no);
|
||||||
|
return IPAddress(dns_ip.addr);
|
||||||
|
}
|
||||||
|
|
||||||
String ESP8266WiFiClass::SSID() const
|
String ESP8266WiFiClass::SSID() const
|
||||||
{
|
{
|
||||||
static struct station_config conf;
|
static struct station_config conf;
|
||||||
|
@ -168,6 +168,13 @@ public:
|
|||||||
*/
|
*/
|
||||||
IPAddress gatewayIP();
|
IPAddress gatewayIP();
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Get the DNS ip address.
|
||||||
|
*
|
||||||
|
* return: DNS ip address value
|
||||||
|
*/
|
||||||
|
IPAddress dnsIP(int dns_no = 0);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Return the current SSID associated with the network
|
* Return the current SSID associated with the network
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user