Does the log keep getting bigger? readFile reads the whole file into a string, so if that ever got too big it would explain the out of memory errors.
You can instead use E.openFile and pipe to serve up the file a bit at a time. I believe there are some examples on the CC3000 or Internet pages.
@Gordon 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.
Does the log keep getting bigger? readFile reads the whole file into a string, so if that ever got too big it would explain the out of memory errors.
You can instead use E.openFile and pipe to serve up the file a bit at a time. I believe there are some examples on the CC3000 or Internet pages.