We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Obs.: It's ok to open in read mode. The code is here:
#include "FS.h" //#include <ArduinoJson.h> File f; void setup() { Serial.begin(115200); Serial.println(""); delay(1000); Serial.println("Mounting FS..."); if (!SPIFFS.begin()) { Serial.println("Failed to mount file system"); return; } SPIFFS.format(); f = SPIFFS.open("/test.txt", "w"); f.close(); f = SPIFFS.open("/test.txt", "w"); if(!f) Serial.print("Error."); else Serial.print("Ok."); f.close(); } void loop() { }
The text was updated successfully, but these errors were encountered:
Fix failure when trying to open empty file (#1126)
f7bbea4
No branches or pull requests
Obs.: It's ok to open in read mode.
The code is here:
The text was updated successfully, but these errors were encountered: