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

fst202130609
Posts: 171
Joined: Thu Sep 23, 2021 10:03 am

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

Postby fst202130609 » Wed Dec 01, 2021 8:14 am

错误码返回: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)

jr-test
Posts: 100
Joined: Mon Aug 23, 2021 3:04 am

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

Postby jr-test » Wed Dec 01, 2021 9:50 am

写数据没成功,所以读不到数据吧

fst202130609
Posts: 171
Joined: Thu Sep 23, 2021 10:03 am

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

Postby fst202130609 » Mon Dec 13, 2021 9:04 am

我第一次上电时没配网,能够用这些函数,读取到的数据为空,配网之后,用按键nvs_flash_eraese()之后会出现这个错误

Who is online

Users browsing this forum: No registered users and 94 guests