I have flashed my esp8266 12f amica with the latest nodemcu firmware (SDK 3.0.1). I am using ESPlorer to code on the esp. I am using a code loosely based on the snippets shown in nodemcu's dev guide. I won't show the code because it seems to me it is not relevant.
If I reset the esp in ESPlorer and run the script - dofile(..), it works. But if I then save the script to esp and rerun the script with dofile, I get an out of memory error.
Once again, if I reset the esp in ESPlorer and run the script, i works like a charm again.
It seems to me it does this because I try to run listen twice without reset (don't know exactly why it go OOM in that case, but anyway)
Is there a clean way in the code (besides trying to close the server before trying to set it up with listen) or something else in ESPlorer to get rid of the issue ?