I'm using a NodeMCU board with embedded 12E.
I need a way to store short data that can be read back once the board has been rebooted.
So I tried to use File System but could not even pass this instruction: SPIFFS.begin();
If I use the following code, the program seems to always be stuck in the "begin" function
Nothing executes after that!
bool ok = SPIFFS.begin();
if (ok) {
Serial.println("OK");
}
else {
Serial.println("KO");
}
Any idea??
By the way, if I just need to store short data (let's say a character) on FS, would it be possible (or simpler) to use EEPROM? What's the best practice?
Thanks