mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-27 18:02:17 +03:00
add optional espressif fw nonos-sdk 2.2.x (19.03.13) (#5873)
This commit is contained in:
@ -249,13 +249,13 @@ int32_t ESP8266WiFiGenericClass::channel(void) {
|
||||
* @param type sleep_type_t
|
||||
* @return bool
|
||||
*/
|
||||
#ifdef NONOSDK221
|
||||
#ifndef NONOSDK3V0
|
||||
bool ESP8266WiFiGenericClass::setSleepMode(WiFiSleepType_t type, uint8_t listenInterval) {
|
||||
(void)type;
|
||||
(void)listenInterval;
|
||||
return false;
|
||||
}
|
||||
#else // !defined(NONOSDK221)
|
||||
#else // defined(NONOSDK3V0)
|
||||
bool ESP8266WiFiGenericClass::setSleepMode(WiFiSleepType_t type, uint8_t listenInterval) {
|
||||
|
||||
/**
|
||||
@ -322,7 +322,7 @@ bool ESP8266WiFiGenericClass::setSleepMode(WiFiSleepType_t type, uint8_t listenI
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
#endif // !defined(NONOSDK221)
|
||||
#endif // defined(NONOSDK3V0)
|
||||
|
||||
/**
|
||||
* get Sleep mode
|
||||
@ -507,7 +507,7 @@ bool ESP8266WiFiGenericClass::forceSleepWake() {
|
||||
* @return interval
|
||||
*/
|
||||
uint8_t ESP8266WiFiGenericClass::getListenInterval () {
|
||||
#ifdef NONOSDK221
|
||||
#ifndef NONOSDK3V0
|
||||
return 0;
|
||||
#else
|
||||
return wifi_get_listen_interval();
|
||||
@ -519,7 +519,7 @@ uint8_t ESP8266WiFiGenericClass::getListenInterval () {
|
||||
* @return true if max level
|
||||
*/
|
||||
bool ESP8266WiFiGenericClass::isSleepLevelMax () {
|
||||
#ifdef NONOSDK221
|
||||
#ifndef NONOSDK3V0
|
||||
return false;
|
||||
#else
|
||||
return wifi_get_sleep_level() == MAX_SLEEP_T;
|
||||
|
@ -138,7 +138,7 @@ wl_status_t ESP8266WiFiSTAClass::begin(const char* ssid, const char *passphrase,
|
||||
}
|
||||
|
||||
conf.threshold.rssi = -127;
|
||||
#ifndef NONOSDK221
|
||||
#ifdef NONOSDK3V0
|
||||
conf.open_and_wep_mode_disable = !(_useInsecureWEP || *conf.password == 0);
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user