• Uncaught SyntaxError: Got [ERASED] expected ID

    This one may actually be unrelated - as @MaBe says the code itself should work fine. Are you writing to Storage from inside your application?

    As a hack, this might fix it:

    function sethttp() { "ram"
      global["\xFF"].HttpCC=[];
    }
    

    While this shouldn't happen in 2v09, in older firmwares you could get in a state where a function was loaded and referenced Storage, but the contents of storage had moved. If we could reproduce with some simple code then I could try and get a fix in

    about the actual memory leak...

    It'd be good to try and track down why this is happening (if there's some really simple code you can share which reproduces the leak?). Usually having a HttpCC just means the HTTP connection never got closed (eg you were using http.request and didn't call .end on it), but it could be a newer version of the ESP8266 firmware changed what data it sent slightly and then the socket close event is no longer handled.

  • This one may actually be unrelated - as @MaBe says the code itself should work fine. Are you writing to Storage from inside your application?

    Yes, i use it for logging

    It'd be good to try and track down why this is happening

    @Gordon You think well (as always)..the problem was basically caused by

    NRF.setScan(function(dev) {..}); 
    

    because it was still running when the require("http").get(...) started. It also produced several strange things after a few days... for example memory leak, http socket close error, even the temperature reading became inaccurate.

    Thanks for all the support!

About

Avatar for Gordon @Gordon started