mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-13 13:01:55 +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
|
||||
|
@ -53,6 +53,7 @@ class ESP8266WiFiSTAClass {
|
||||
bool getAutoConnect();
|
||||
|
||||
bool setAutoReconnect(bool autoReconnect);
|
||||
bool getAutoReconnect();
|
||||
|
||||
uint8_t waitForConnectResult();
|
||||
|
||||
|
Reference in New Issue
Block a user