• you can find reset causes explained in this document

    The most root cause is running out of heap.

    Use this statement to get debug info on console like heap size

    require('ESP8266').logDebug(true);
    require('ESP8266').setLog(2);
    
    // output
    >325651> Sun Aug 13 07:54:45 2017, heap: 10416
    
  • Could you please explain what 'heap' in the output means?

    Problem is that after starting of program everything is ok, I make 3 requests at the same time every 180seconds. But on 10th time it shows error - out of memory, and every time it happens on different try. Probably I should clean ram somehow after each request or something like this? (using of non-custom font helps a little bit, but errors still happen).

    ERROR: Out of Memory!
    ERROR: Error processing Serial data handler - removing it.
    Execution Interrupted during event processing.
    Uncaught SyntaxError: Expecting a valid value, got EOF
     at line 1 col 22
    {"count":1,"results":[
    

    Thank you for answers!

About

Avatar for Hansi @Hansi started