https://github.com/me-no-dev/ESPAsyncWe ... issues/820
Im trying to stream ESP32 -Cam data via Websockets (AsyncWebSocket) , and after a couple seconds device crashes and reboots. Its clear Im overflowing it, but I havent figured a way to manage this better. I put it in a timer (to reduce frequency), and it still crashes - pretty much the same.
Am I overlooking a way to wait for the sends to finish and/or do some memory clean up?
Thanks!
Code: Select all
abort() was called at PC 0x4016063b on core 0
Code: Select all
AsyncWebSocket webSocket("/ws");
camera_fb_t *fb = NULL;
...
void loop() {
fb = esp_camera_fb_get();
webSocket.binaryAll(fb->buf, fb->len);
esp_camera_fb_return(fb);
}