File tree 2 files changed +12
-0
lines changed
libraries/ESP8266WiFi/src
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -323,6 +323,17 @@ IPAddress ESP8266WiFiAPClass::softAPIP() {
323
323
return IPAddress (ip.ip .addr );
324
324
}
325
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
+
326
337
327
338
/* *
328
339
* Get the softAP interface MAC address.
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ class ESP8266WiFiAPClass {
45
45
uint8_t softAPgetStationNum ();
46
46
47
47
IPAddress softAPIP ();
48
+ IPAddress softAPbroadcastIP ();
48
49
49
50
uint8_t * softAPmacAddress (uint8_t * mac);
50
51
String softAPmacAddress (void );
You can’t perform that action at this time.
0 commit comments