te0
te0
DIIDevHeads IoT Integration Server
Created by te0 on 9/27/2024 in #edge-networking
How do I build an MJPEG server via WebSocket on ESP32 using Mongoose
if (frame_buf->buf != NULL)
{
size_t count = mg_ws_printf(c, WEBSOCKET_OP_TEXT, "Content-Type: image/jpeg Content-Length: %lu\r\n\r\n", frame_buf->len);
ESP_LOGI(TAG,"count : %d",count);
count = mg_ws_send(c, frame_buf->buf, frame_buf->len,WEBSOCKET_OP_BINARY);
ESP_LOGI(TAG,"count2 : %d",count);
vTaskDelay(500/portTICK_PERIOD_MS);
esp_camera_fb_return(frame_buf);
}
if (frame_buf->buf != NULL)
{
size_t count = mg_ws_printf(c, WEBSOCKET_OP_TEXT, "Content-Type: image/jpeg Content-Length: %lu\r\n\r\n", frame_buf->len);
ESP_LOGI(TAG,"count : %d",count);
count = mg_ws_send(c, frame_buf->buf, frame_buf->len,WEBSOCKET_OP_BINARY);
ESP_LOGI(TAG,"count2 : %d",count);
vTaskDelay(500/portTICK_PERIOD_MS);
esp_camera_fb_return(frame_buf);
}
6 replies
DIIDevHeads IoT Integration Server
Created by te0 on 9/27/2024 in #edge-networking
How do I build an MJPEG server via WebSocket on ESP32 using Mongoose
thanks I solved it
6 replies
DIIDevHeads IoT Integration Server
Created by te0 on 8/19/2024 in #edge-networking
Any examples of power management with ESP-NOW beyond modem sleep?
none of the links are valid @Joseph Ogbonna
7 replies