1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

adds WiFi.getPersistent() (#3857)

This commit is contained in:
Shawn A 2017-11-22 15:08:28 -06:00 committed by Develo
parent fecacf167c
commit c40d8a990e
2 changed files with 8 additions and 1 deletions

View File

@ -303,6 +303,13 @@ void ESP8266WiFiGenericClass::persistent(bool persistent) {
_persistent = persistent;
}
/**
* gets the persistent state
* @return bool
*/
bool ESP8266WiFiGenericClass::getPersistent(){
return _persistent;
}
/**
* set new mode

View File

@ -99,7 +99,7 @@ class ESP8266WiFiGenericClass {
int hostByName(const char* aHostname, IPAddress& aResult);
int hostByName(const char* aHostname, IPAddress& aResult, uint32_t timeout_ms);
bool getPersistent();
protected:
friend class ESP8266WiFiSTAClass;