Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
I tried the websocket library to send some Json messages to the pywebsocket server. But the server couldn't receive any messages. I inspected the websocket library and found that byte order of the length field is not correct. I think that the following corrections are required.
sendChar(len & 0xff);
sendChar((len >> 8) & 0xff);
↓
sendChar((len >> 8) & 0xff);
sendChar(len & 0xff);