This is my code:
- auto client = camserver.accept();
- while (client.available()) {
- client.poll();
- fb = esp_camera_fb_get();
- client.sendBinary((const char *)fb->buf, fb->len);
- esp_camera_fb_return(fb);
- fb = NULL;
- }
- // other code to check temperature from sensor
"auto client = camserver.accept();" doesn't allow the execution of other code. For example I need check temperature from sensor every 5 seconds.
Any ideas about how avoid this?