8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90c4e3a commit f2da54dCopy full SHA for f2da54d
libraries/ESP8266WiFi/src/ESP8266WiFiAP.cpp
@@ -323,6 +323,17 @@ IPAddress ESP8266WiFiAPClass::softAPIP() {
323
return IPAddress(ip.ip.addr);
324
}
325
326
+/**
327
+ * Get the softAP broadcast ip address.
328
+ * @return IPAddress softAP broadcast IP
329
+ */
330
+IPAddress ESP8266WiFiAPClass::softAPbroadcastIP()
331
+{
332
+ struct ip_info ip;
333
+ wifi_get_ip_info(SOFTAP_IF, &ip);
334
+ return IPAddress(ip.ip.addr | ~(ip.netmask.addr));
335
+}
336
+
337
338
/**
339
* Get the softAP interface MAC address.
libraries/ESP8266WiFi/src/ESP8266WiFiAP.h
@@ -45,6 +45,7 @@ class ESP8266WiFiAPClass {
45
uint8_t softAPgetStationNum();
46
47
IPAddress softAPIP();
48
+ IPAddress softAPbroadcastIP();
49
50
uint8_t* softAPmacAddress(uint8_t* mac);
51
String softAPmacAddress(void);
0 commit comments