mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-16 11:21:18 +03:00
adds getautoreconnect() (#4359)
This commit is contained in:
@ -356,6 +356,14 @@ bool ESP8266WiFiSTAClass::setAutoReconnect(bool autoReconnect) {
|
||||
return wifi_station_set_reconnect_policy(autoReconnect);
|
||||
}
|
||||
|
||||
/**
|
||||
* get whether reconnect or not when the ESP8266 station is disconnected from AP.
|
||||
* @return autoreconnect
|
||||
*/
|
||||
bool ESP8266WiFiSTAClass::getAutoReconnect() {
|
||||
return wifi_station_get_reconnect_policy();
|
||||
}
|
||||
|
||||
/**
|
||||
* Wait for WiFi connection to reach a result
|
||||
* returns the status reached or disconnect if STA is off
|
||||
|
Reference in New Issue
Block a user