You are reading a single comment by @MSol and its replies. Click here to read the full conversation.
  • Thanks to everybody!

    Short report:

    1) "The function getTC() is called inside its own definition" - it works fine, no memory leak:

    function getTC() {
        sensor.getTemp(function (temp) {
            console.log("Temp is "+temp+"°C : ",cnt++);
        });
        setTimeout(function(){getTC();},1000);
    }
    getTC();
    

    2) Espruino v1.88 and v1.89 work fine with above code for long time. Unfortunatly, after the same testing I cannot approve v.87 and v1.90.

    My test environment consists:

    • ESPRUINO WEB IDE;
    • Two kinds of PCB boards, NodeMCU and proprietary one (as shown above);
    • power supply with 5V (max 5A) output for proprietary PCB.

    Feel free to contact me if any question.

About

Avatar for MSol @MSol started