this.socket.write(str(m8)); // or this.socket.write(String.fromCharCode(m8));
They have the same performance.
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. Before we use UintArray, the total time is 85 seconds.
Do you think we can find some way to enhance the 'ws' performance to transfer 23KB datas within 10 seconds?
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.
Yes, it's sending the correct data by your code
or the code below:
They have the same performance.
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. Before we use UintArray, the total time is 85 seconds.
Do you think we can find some way to enhance the 'ws' performance to transfer 23KB datas within 10 seconds?