Page 1 of 1

nvs_open("WiFi_cfg", NVS_READWRITE, &wificfg_nvs_handler)用这个函数打开失败

Posted: Wed Dec 01, 2021 8:14 am
by fst202130609
错误码返回:ESP_ERROR_CHECK failed: esp_err_t 0x1102 (ESP_ERR_NVS_NOT_FOUND) at 0x403847dd
file: "../main/main.c" line 413
func: wifi_init_sta
expression: nvs_get_str(wificfg_nvs_handler,"wifi_ssid",wifi_ssid,&len)

Re: nvs_open("WiFi_cfg", NVS_READWRITE, &wificfg_nvs_handler)用这个函数打开失败

Posted: Wed Dec 01, 2021 9:50 am
by jr-test
写数据没成功,所以读不到数据吧

Re: nvs_open("WiFi_cfg", NVS_READWRITE, &wificfg_nvs_handler)用这个函数打开失败

Posted: Mon Dec 13, 2021 9:04 am
by fst202130609
我第一次上电时没配网,能够用这些函数,读取到的数据为空,配网之后,用按键nvs_flash_eraese()之后会出现这个错误