mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-21 10:26:06 +03:00
adds WiFi.getPersistent() (#3857)
This commit is contained in:
parent
fecacf167c
commit
c40d8a990e
@ -303,6 +303,13 @@ void ESP8266WiFiGenericClass::persistent(bool persistent) {
|
|||||||
_persistent = persistent;
|
_persistent = persistent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* gets the persistent state
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
bool ESP8266WiFiGenericClass::getPersistent(){
|
||||||
|
return _persistent;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* set new mode
|
* set new mode
|
||||||
|
@ -99,7 +99,7 @@ class ESP8266WiFiGenericClass {
|
|||||||
|
|
||||||
int hostByName(const char* aHostname, IPAddress& aResult);
|
int hostByName(const char* aHostname, IPAddress& aResult);
|
||||||
int hostByName(const char* aHostname, IPAddress& aResult, uint32_t timeout_ms);
|
int hostByName(const char* aHostname, IPAddress& aResult, uint32_t timeout_ms);
|
||||||
|
bool getPersistent();
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
friend class ESP8266WiFiSTAClass;
|
friend class ESP8266WiFiSTAClass;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user