Search found 4 matches

by pedros89
Fri Oct 15, 2021 12:49 pm
Forum: ESP32 Arduino
Topic: Using delay with WebServer handleClient
Replies: 3
Views: 9509

Re: Using delay with WebServer handleClient

Hello Emygma,
I have the same problem. I sometimes have in response from the server a blank white page and I think this is the reason.
I am sending to the client a very long HTML page (51KBytes) and I in addition I steam images from SPIFFS with the code below.

if (SPIFFS.exists(path)){
File ...
by pedros89
Fri Aug 27, 2021 3:09 pm
Forum: ESP32 Arduino
Topic: How can I know if I have a client connected to the ESP ?
Replies: 4
Views: 13292

Re: How can I know if I have a client connected to the ESP ?

Hello,
with normal web server of Arduino core there is this line in https://github.com/espressif/arduino-esp32/blob/master/libraries/WebServer/src/WebServer.h

virtual WiFiClient client() { return _currentClient; }

So in order to see if a client is connect you can write

void checkClient ...
by pedros89
Tue Aug 03, 2021 9:37 am
Forum: ESP-IDF
Topic: [SOLVED]Load spiffs_image.img after OTA
Replies: 13
Views: 15898

Re: [SOLVED]Load spiffs_image.img after OTA

Thank you for this post. I needed to update SPIFFS from OTA and I managed to do it thanks to you.

You may find the code for Arduino IDE below. I took most of code form this post to make it.

https://github.com/pedros89/ESP32-OTA-u ... th-Arduino

For me it works great. Bye!
by pedros89
Tue Aug 03, 2021 9:33 am
Forum: General Discussion
Topic: OTA update spiffs
Replies: 12
Views: 34299

Re: OTA update spiffs

Hello, you may find a repository to do OTA update spiffs with code for Arduino IDE here:

https://github.com/pedros89/ESP32-OTA-u ... th-Arduino

Go to advanced search