One last thing: sizeof(sse_resp) should be sizeof(sse_resp)-1 because sse_resp implicitly includes a "\0" terminator which you should not send.393877719 wrote: ↑Mon Feb 05, 2024 1:38 pmCode: Select all
httpd_socket_send(mySocketHD, mySocketFD, sse_resp, sizeof(sse_resp), 0);
Implementation of Server-Sent Events (SSE) in ESP-IDF
-
- Posts: 1680
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
Re: Implementation of Server-Sent Events (SSE) in ESP-IDF
-
- Posts: 3
- Joined: Sun Jun 04, 2017 4:39 am
Re: Implementation of Server-Sent Events (SSE) in ESP-IDF
A client example of this would be fantastic!
Who is online
Users browsing this forum: No registered users and 54 guests