Skip to content

Commit c40d8a9

Browse files
tablatronixdevyte
authored andcommitted
adds WiFi.getPersistent() (#3857)
1 parent fecacf1 commit c40d8a9

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,13 @@ void ESP8266WiFiGenericClass::persistent(bool persistent) {
303303
_persistent = persistent;
304304
}
305305

306+
/**
307+
* gets the persistent state
308+
* @return bool
309+
*/
310+
bool ESP8266WiFiGenericClass::getPersistent(){
311+
return _persistent;
312+
}
306313

307314
/**
308315
* set new mode

libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class ESP8266WiFiGenericClass {
9999

100100
int hostByName(const char* aHostname, IPAddress& aResult);
101101
int hostByName(const char* aHostname, IPAddress& aResult, uint32_t timeout_ms);
102-
102+
bool getPersistent();
103103
protected:
104104

105105
friend class ESP8266WiFiSTAClass;

0 commit comments

Comments
 (0)