LuaNode
LuaNode copied to clipboard
nvs_open fails
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 Hi, before open nvs, you need to call nvs_flash_init() first.