1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-14 13:41:23 +03:00

Add softAPbroadcastIP (#8963)

This commit is contained in:
reyfel
2023-07-27 00:52:59 +02:00
committed by GitHub
parent 90c4e3afc1
commit f2da54d3a2
2 changed files with 12 additions and 0 deletions

View File

@ -323,6 +323,17 @@ IPAddress ESP8266WiFiAPClass::softAPIP() {
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.