I'm having problemas with SPIFFS reading. I'm using SPIFFS to do a log and show it in the esp8266 websever.
It works well for some time but at some position it starts to be slow or it locks and restart the board.
I am already using the latest version of SPIFFS library (V0.3.7).
I tried to read using readStringUntil and also using readBytes, but both of them will fail at some position when the file starts to be larger.
I also tried to read just the last 5k bytes, but at some point depending on the position it will fail too.
Anyone has a solution for that?
Thanks
Could be something in the code or maybe with the board setup you have, or maybe something else mostly known to you. Have you done any simple testing using the SPIFFS example code?
Sorry for the delay.
Yes, I have done simple testing with examples, but when the file was larger I had some troubles with some positions.
I could solve the problem with this post: Sending client a web page stored in spiffs - Networking, Protocols, and Devices - Arduino Forum
I stopped reading the file to a String buffer and I'm streaming it to the server.
It worked well and very fast.
Thank you.