mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-13 13:01:55 +03:00
add more debug for disconnect
add isConnected function for easier usage
This commit is contained in:
@ -267,6 +267,15 @@ bool ESP8266WiFiSTAClass::disconnect(bool wifioff) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* is STA interface connected?
|
||||
* @return true if STA is connected to an AD
|
||||
*/
|
||||
bool ESP8266WiFiSTAClass::isConnected() {
|
||||
return (status() == WL_CONNECTED);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Setting the ESP8266 station to connect to the AP (which is recorded)
|
||||
* automatically or not when powered on. Enable auto-connect by default.
|
||||
|
Reference in New Issue
Block a user