@Gordon I change the code
this.socket.write(m8);
to
this.socket.write(str(m8)); // or this.socket.write(String.fromCharCode(m8));
Then , the server will never crashed, and the ESP32 with no out of memroy all the time.
the m8 stores the char code, so we need to convert them to char by fromCharCode();
But, the 'ws' is slowed down, per 230 bytes packet needs 600ms to be transfered , and all the 23KB datas need 66 seconds.
@Aifer 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.
@Gordon
I change the code
to
Then , the server will never crashed, and the ESP32 with no out of memroy all the time.
the m8 stores the char code, so we need to convert them to char by fromCharCode();
But, the 'ws' is slowed down, per 230 bytes packet needs 600ms to be transfered , and all the 23KB datas need 66 seconds.