mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-15 00:02:49 +03:00
add softAPgetStationNum
This commit is contained in:
@ -186,6 +186,15 @@ bool ESP8266WiFiAPClass::softAPdisconnect(bool wifioff) {
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the count of the Station / client that are connected to the softAP interface
|
||||||
|
* @return Stations count
|
||||||
|
*/
|
||||||
|
uint8_t ESP8266WiFiAPClass::softAPgetStationNum() {
|
||||||
|
return wifi_softap_get_station_num();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the softAP interface IP address.
|
* Get the softAP interface IP address.
|
||||||
* @return IPAddress softAP IP
|
* @return IPAddress softAP IP
|
||||||
|
@ -40,6 +40,8 @@ class ESP8266WiFiAPClass {
|
|||||||
bool softAPConfig(IPAddress local_ip, IPAddress gateway, IPAddress subnet);
|
bool softAPConfig(IPAddress local_ip, IPAddress gateway, IPAddress subnet);
|
||||||
bool softAPdisconnect(bool wifioff = false);
|
bool softAPdisconnect(bool wifioff = false);
|
||||||
|
|
||||||
|
uint8_t softAPgetStationNum();
|
||||||
|
|
||||||
IPAddress softAPIP();
|
IPAddress softAPIP();
|
||||||
|
|
||||||
uint8_t* softAPmacAddress(uint8_t* mac);
|
uint8_t* softAPmacAddress(uint8_t* mac);
|
||||||
|
Reference in New Issue
Block a user