Skip to content

Commit a683b81

Browse files
authored
fix(wifi): Do not use persistent mode with ESP-Hosted (#12043)
1 parent 5ab1db6 commit a683b81

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

libraries/WiFi/src/WiFiGeneric.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,12 @@ bool wifiLowLevelInit(bool persistent) {
264264

265265
wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT();
266266

267+
#if CONFIG_ESP_WIFI_REMOTE_ENABLED
268+
// required for proper work when esp-hosted is used.
269+
cfg.nvs_enable = false;
270+
persistent = false;
271+
#endif
272+
267273
if (!WiFiGenericClass::useStaticBuffers()) {
268274
cfg.static_tx_buf_num = 0;
269275
cfg.dynamic_tx_buf_num = 32;

0 commit comments

Comments
 (0)