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:
Feel free to contact me if any question.
@MSol started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Thanks to everybody!
Short report:
1) "The function getTC() is called inside its own definition" - it works fine, no memory leak:
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:
Feel free to contact me if any question.