-->
Page 5 of 5

Re: SPIFFS file read and write example

PostPosted: Sat Sep 09, 2017 8:08 am
by treii28
Thanks for the example. Setting out to do the same thing this morning. (learns spiffs so I can tie it in with the Async server code without using SD)

Re: SPIFFS file read and write example

PostPosted: Sat Sep 09, 2017 9:03 am
by heweb
Thank you for this example!

I am experimenting with this sketch.

To test, if Spiffs is formatted i use:

Code: Select allbool result=SPIFFS.begin();
Serial.print("Spiffs formatted?  ");  Serial.println(result?"YES":"NO");
if (!result) { // not formatted
  SPIFFS.format();
}


Could anybody tell me, how much space i have for this? (wemos D1 retired)

Re: SPIFFS file read and write example

PostPosted: Fri Mar 16, 2018 9:18 am
by RIN67630
Thank you for your example.
The formatting took ~8 minutes in a 16MB file system.
I lost a few hours trying to find out why my ESP seemed to crash.
Please mention the long time in your comment.