1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-15 00:02:49 +03:00

add softAPgetStationNum

This commit is contained in:
Markus Sattler
2015-12-29 15:40:54 +01:00
parent 293e55c690
commit 8943ac402c
2 changed files with 11 additions and 0 deletions

View File

@ -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

View File

@ -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);