Not sure why I get this error:
ERROR: Out of Memory! done piping at line 1 col 106 ...str(0,b);f[a]=f[a].substr(b)}else d=f[a],f[a]="","DataClose"... in function called from system
(highlighted piece of code is the substr() call) Simplified code is:
http.request(httpOptions, function(requestResult) { requestResult.pipe(f, { chunkSize: 512, complete: function() { console.log('done piping'); } }); }).end();
@dave_irvine 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.
Not sure why I get this error:
(highlighted piece of code is the substr() call)
Simplified code is: