IDF WebSocket Server

stdenits
Posts: 24
Joined: Sun May 17, 2020 3:18 pm

IDF WebSocket Server

Postby stdenits » Thu Jun 04, 2020 2:57 am

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.

chegewara
Posts: 2378
Joined: Wed Jun 14, 2017 9:00 pm

Re: IDF WebSocket Server

Postby chegewara » Thu Jun 04, 2020 6:44 am


stdenits
Posts: 24
Joined: Sun May 17, 2020 3:18 pm

Re: IDF WebSocket Server

Postby stdenits » Sun Jun 14, 2020 4:29 am

@ chegewara
*sigh* Does that mean that WS is the part of the esp_httpd_server now?

chegewara
Posts: 2378
Joined: Wed Jun 14, 2017 9:00 pm

Re: IDF WebSocket Server

Postby chegewara » Sun Jun 14, 2020 1:35 pm

I dont know that, but you can ask in that issue topic to get more info.

stdenits
Posts: 24
Joined: Sun May 17, 2020 3:18 pm

Re: IDF WebSocket Server

Postby stdenits » Sun Jun 14, 2020 2:55 pm

Looks like it is. Thank you.

harsh772k
Posts: 1
Joined: Thu Oct 17, 2024 5:29 am

IDF WebSocket Server

Postby harsh772k » Tue Oct 22, 2024 4:55 am

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

Who is online

Users browsing this forum: jtroncin21 and 84 guests