• @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.

About

Avatar for Aifer @Aifer started