Problems about 2 hours into it. Updating wirelessly became hit and miss and device was restarting with 'out of memory' warnings.
Now I have the image on a CDN, I'm not reading back the logs, and I'm back on USB power, (though I'm not sure the battery is at fault yet).
Image of 23kb was served chunked as per the docs, but was there a better way to read the log data back into the page? I used var logs = fs.readFile(..) and output directly to the page using res.write(logs). The page then got served.
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.
Problems about 2 hours into it. Updating wirelessly became hit and miss and device was restarting with 'out of memory' warnings.
Now I have the image on a CDN, I'm not reading back the logs, and I'm back on USB power, (though I'm not sure the battery is at fault yet).
Image of 23kb was served chunked as per the docs, but was there a better way to read the log data back into the page? I used var logs = fs.readFile(..) and output directly to the page using res.write(logs). The page then got served.
Any best practices for using as a webserver?