The out of memory could be that you're now sending data faster than the ESP8266 can send it down WiFi! The 'send' function will return control to your code before the data packets have actually left the ESP8266.
I'd compare the data you get from the 2 bits of code - maybe there is something wrong with my code.
It could also be that the wrong amount of data is getting sent somehow? That might explain the 'invalid opcode'
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.
The out of memory could be that you're now sending data faster than the ESP8266 can send it down WiFi! The 'send' function will return control to your code before the data packets have actually left the ESP8266.
I'd compare the data you get from the 2 bits of code - maybe there is something wrong with my code.
It could also be that the wrong amount of data is getting sent somehow? That might explain the 'invalid opcode'