E.openFile failures #7127
Unanswered
espruino-discuss3
asked this question in
ESP32
Replies: 1 comment
-
Posted at 2019-01-13 by Robin Sat 2019.01.12 Performing a Google search, remember Google is your friend,
a lengthy discussion and solution was previously proposed Posted at 2019-01-13 by barbiani Ha! Thank you. I used the forum search for "openfile" without results ;( Here is one solution to help other users. It fixes the heap leak, but still eventually fails to open the file.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2019-01-13 by barbiani
Hello everybody,
I am experimenting a bit with the http server (espruino versions from 1.99) and this snippet works most of the time.
First time the page is opened it shows the files in the system as hyperlinks. Downloading a file many times breaks the code.
I´ve found that calling E.openFile many times in the left webide pane makes it fail too. No examples show a close method after openFile, so I believe that it is not needed.
Am I doing it wrong?
Beta Was this translation helpful? Give feedback.
All reactions