fs.writeFile() and fs.readFile() not working properly in ESP32 #7461
Replies: 1 comment
-
Posted at 2022-01-16 by @MaBecker Hmm, 1.95 is old, better upgrade and try again. Posted at 2022-06-26 by GermanWarez Same issue in 2.14. I think the filesystem just crashes silently if there are is not enough heap or too few variables. Posted at 2022-06-26 by @MaBecker I only use Storage. Can you add a sample to reproduce the crash, or just add infos to espruino/Espruino#1777 Posted at 2022-07-04 by GermanWarez For ESP8266 or ESP32? I'm busy atm, but I'll add some specialized code when I find the time to do so.
Posted at 2022-07-06 by @MaBecker Hmm, my guess it that you overload the ESP8266. The ESP32 has much more memory and should handle it. Well fs is very memory hungry. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2022-01-07 by user139113
I've recently encountered this problem, in which I sometimes try to save some data (come configurations, no more than 100 characters in total) in a file using this function fs.writeFile(), but after like 2 or 3 tries, it just stop working, and the function returns false every time...
I also tried to use the E.openFile() and File.close() pattern, but sadly I'm getting the same results. Does anyone else have this problem? I'm using firmware version 1.95 btw
Beta Was this translation helpful? Give feedback.
All reactions