Failing to save content with the Elements.io sample #579
-
I am using a NodeMCU board and playing with the Elements.io sample I had to modify the code slightly because it wasn't compiling. The changes were only on the headers import and they look like this: `#if defined(ARDUINO_ARCH_ESP8266) #include <AutoConnect.h> #include <LittleFS.h> The execution prints "Filesystem failed to open." How do I troubleshoot this? Is there a way to collect more detailed information from the LittleFS library about the problem? My platformio.ino looks like this:
tks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Your specified The correct file system identifier for NodeMCUV2 with LittleFS is as follows: build_flags = -DAC_USE_LITTLEFS -DPB_USE_LITTLEFS |
Beta Was this translation helpful? Give feedback.
Your specified
board_build.filesystem=littlefs
and filesystem identifiers for AutoConnect, and PageBuilder are different bybuild_flags = -DAC_USE_SPIFFS -DPB_USE_SPIFFS
. It tells AutoConnect and PageBuilder to use SPIFFS.The correct file system identifier for NodeMCUV2 with LittleFS is as follows:
build_flags = -DAC_USE_LITTLEFS -DPB_USE_LITTLEFS
See: https://hieromon.github.io/AutoConnect/filesystem.html