LuaNode icon indicating copy to clipboard operation
LuaNode copied to clipboard

nvs_open fails

Open jeffsauer opened this issue 9 years ago • 1 comments

When compiling using the esp-idf v2.1, I was getting an error saying that nvs_open() failed. Looks like one needs to first initialize NVS now, apparently in previous version the WiFi init did that, but no longer. So, I edited main.c and added the following include:

#include "nvs_flash.h"

and then inside of initialise_wifi() I added:

nvs_flash_init();

just before the call to tcpip_adapter_init();

jeffsauer avatar Nov 10 '17 23:11 jeffsauer

@jeffsauer Hi, before open nvs, you need to call nvs_flash_init() first.

Nicholas3388 avatar Jan 05 '18 08:01 Nicholas3388