No error, it just stops.
require("http").get("http://forecast.weather.gov/MapClick.php?lat=39.70&lon=-104.80&FcstType=json", function(res) { var contents = ""; res.on('data', function(data) { contents += data; }); res.on('close', function() { console.log(contents); }); });
After it stops I run process.memory() and it returns... { "free": 1349, "usage": 51, "total": 1400, "history": 28 }
Am I reading that correctly and its not used much memory?
@cwilt 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.
No error, it just stops.
After it stops I run process.memory() and it returns...
{ "free": 1349, "usage": 51, "total": 1400, "history": 28 }
Am I reading that correctly and its not used much memory?