mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-21 10:26:06 +03:00
Add softAPbroadcastIP (#8963)
This commit is contained in:
parent
90c4e3afc1
commit
f2da54d3a2
@ -323,6 +323,17 @@ IPAddress ESP8266WiFiAPClass::softAPIP() {
|
|||||||
return IPAddress(ip.ip.addr);
|
return IPAddress(ip.ip.addr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the softAP broadcast ip address.
|
||||||
|
* @return IPAddress softAP broadcast IP
|
||||||
|
*/
|
||||||
|
IPAddress ESP8266WiFiAPClass::softAPbroadcastIP()
|
||||||
|
{
|
||||||
|
struct ip_info ip;
|
||||||
|
wifi_get_ip_info(SOFTAP_IF, &ip);
|
||||||
|
return IPAddress(ip.ip.addr | ~(ip.netmask.addr));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the softAP interface MAC address.
|
* Get the softAP interface MAC address.
|
||||||
|
@ -45,6 +45,7 @@ class ESP8266WiFiAPClass {
|
|||||||
uint8_t softAPgetStationNum();
|
uint8_t softAPgetStationNum();
|
||||||
|
|
||||||
IPAddress softAPIP();
|
IPAddress softAPIP();
|
||||||
|
IPAddress softAPbroadcastIP();
|
||||||
|
|
||||||
uint8_t* softAPmacAddress(uint8_t* mac);
|
uint8_t* softAPmacAddress(uint8_t* mac);
|
||||||
String softAPmacAddress(void);
|
String softAPmacAddress(void);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user