8000 Fixing things for the latest ESP-IDF · nkolban/esp32-snippets@e5703c0 · GitHub
[go: up one dir, main page]

Skip to content

Commit e5703c0

Browse files
committed
Fixing things for the latest ESP-IDF
1 parent e5220c4 commit e5703c0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cpp_utils/WiFi.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,11 @@ uint8_t WiFi::connectAP(const std::string& ssid, const std::string& password, bo
178178
ESP_LOGE(LOG_TAG, "esp_wifi_set_mode: rc=%d %s", errRc, GeneralUtils::errorToString(errRc));
179179
abort();
180180
}
181+
errRc = ::esp_wifi_set_ps(WIFI_PS_NONE);
182+
if (errRc != ESP_OK) {
183+
ESP_LOGE(LOG_TAG, "esp_wifi_set_ps: rc=%d %s", errRc, GeneralUtils::errorToString(errRc));
184+
//abort();
185+
}
181186
wifi_config_t sta_config;
182187
::memset(&sta_config, 0, sizeof(sta_config));
183188
::memcpy(sta_config.sta.ssid, ssid.data(), ssid.size());

0 commit comments

Comments
 (0)
0