File tree 3 files changed +10
-0
lines changed
libraries/ESP8266WiFi/src
3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -356,6 +356,14 @@ bool ESP8266WiFiSTAClass::setAutoReconnect(bool autoReconnect) {
356
356
return wifi_station_set_reconnect_policy (autoReconnect);
357
357
}
358
358
359
+ /* *
360
+ * get whether reconnect or not when the ESP8266 station is disconnected from AP.
361
+ * @return autoreconnect
362
+ */
363
+ bool ESP8266WiFiSTAClass::getAutoReconnect () {
364
+ return wifi_station_get_reconnect_policy ();
365
+ }
366
+
359
367
/* *
360
368
* Wait for WiFi connection to reach a result
361
369
* returns the status reached or disconnect if STA is off
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ class ESP8266WiFiSTAClass {
53
53
bool getAutoConnect ();
54
54
55
55
bool setAutoReconnect (bool autoReconnect);
56
+ bool getAutoReconnect ();
56
57
57
58
uint8_t waitForConnectResult ();
58
59
Original file line number Diff line number Diff line change @@ -297,6 +297,7 @@ uint8 wifi_station_get_auto_connect(void);
297
297
bool wifi_station_set_auto_connect (uint8 set );
298
298
299
299
bool wifi_station_set_reconnect_policy (bool set );
300
+ bool wifi_station_get_reconnect_policy ();
300
301
301
302
typedef enum {
302
303
STATION_IDLE = 0 ,
You can’t perform that action at this time.
0 commit comments