Page 1 of 1

IDF WebSocket Server

Posted: Thu Jun 04, 2020 2:57 am
by stdenits
Hello.

I am looking for ESP IDF v4. * WebSocket server code implementation and usage example.

I would be grateful if someone could share the code or contact me to discuss the cost of implementation.

Thank you.

Re: IDF WebSocket Server

Posted: Thu Jun 04, 2020 6:44 am
by chegewara

Re: IDF WebSocket Server

Posted: Sun Jun 14, 2020 4:29 am
by stdenits
@ chegewara
*sigh* Does that mean that WS is the part of the esp_httpd_server now?

Re: IDF WebSocket Server

Posted: Sun Jun 14, 2020 1:35 pm
by chegewara
I dont know that, but you can ask in that issue topic to get more info.

Re: IDF WebSocket Server

Posted: Sun Jun 14, 2020 2:55 pm
by stdenits
Looks like it is. Thank you.

IDF WebSocket Server

Posted: Tue Oct 22, 2024 4:55 am
by harsh772k
I am trying to add web socket server communication for ocpp,the http is working fine but for webs sockets i am not able to connect it to the postman .
this is the error in postman:
Could not connect to ws://192.168.4.1/chgrfid
15:22:29
Error: Unexpected server response: 200
Handshake Details
Request URL: http://192.168.4.1/chgrfid
Request Method: GET
Status Code: 200 OK
Request Headers
Sec-WebSocket-Version: 13
Sec-WebSocket-Key: M+sOUhzXDnG9+hOO6R/xaA==
Connection: Upgrade
Upgrade: websocket
Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits
Host: 192.168.4.1
Response Headers
Content-Type: text/html
Content-Length: 2589

Can anybody tell me how todo it or any resorce for web sockets