So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By destroyedlolo
#74417 Personally, I would not use the flash memory but create a stricture in the RAM (ESP has plenty). Ok, there is a risk to loose data in case of crash or such, but often writing to a flash leads to a dead ESP.
User avatar
By btidey
#74424 OP said they wanted to buffer up to 1MB data. RAM is the resource on the module in shortest supply. I doubt whether one could buffer much more than 16KB in RAM

I don't think the writing to Flash will be a problem here as a) it is only used to hold data when wifi is down and b) one is not continually writing.

Flash is good for about 10 - 100 thousand writes depending on quality of flash chip.

Also SPIFFS has wear levelling support which means the life can be spread over the Flash.

See viewtopic.php?f=32&t=6109