@Gordon The log was getting bigger yes, and I was using E.openFile for the image, but was using readFile for reading the log back into the page since I had issues trying to continue res.write output (to close the page html) after I'd piped the openFile output. Is this possible? If I did it again I'd pipe the logs and include them in the main page via iframe - I imagine that would work fine?
@DrAzzy I can't see that process.memory() in the Reference section. Do you include that in a setInterval function and log to console to monitor over time? How do I interpret the returned info?
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.
@Gordon The log was getting bigger yes, and I was using E.openFile for the image, but was using readFile for reading the log back into the page since I had issues trying to continue res.write output (to close the page html) after I'd piped the openFile output. Is this possible? If I did it again I'd pipe the logs and include them in the main page via iframe - I imagine that would work fine?
@DrAzzy I can't see that process.memory() in the Reference section. Do you include that in a setInterval function and log to console to monitor over time? How do I interpret the returned info?