Slow webserver after upgrade from ESP8266 to ESP32

marcom
Posts: 1
Joined: Sat Aug 22, 2020 12:46 pm

Slow webserver after upgrade from ESP8266 to ESP32

Postby marcom » Wed Nov 17, 2021 4:31 pm

Hi.
I use ESP8266 (4MB) with SPIFFS webserwer and simpleftp.
I works great.
Now, I would like to use my code with ESP32 (4MB) - because od bluetooth, IOs, etc.
I changed my code, it woks, but I am confused because of speed of it !
I have to wait 4-5 seconds for page refresh.
I am sending HTML files from SPIFFS and I don't know what is to slow - flash file system or wifi ?
I think it is a flash problem because if i have page declareg with PROGMEM - it works fast (normal).
I lost all my day for testing and I don't know what to do.
Stay with ESP8266 and cry or... or believe it is my fault, SPIFFS library problem (LittleFS doesn't work with ESP32 so I use SPIFFS) and try another solutions (declare all my html pages as PROGMEM - but it is awfull when page is big).

I believe someone had the same problem and can help.
Regards,
Mariusz

ESP_Sprite
Posts: 9711
Joined: Thu Nov 26, 2015 4:08 am

Re: Slow webserver after upgrade from ESP8266 to ESP32

Postby ESP_Sprite » Thu Nov 18, 2021 3:22 am

I'm no expert on this, but it'll likely help if you can post the code you're having issues with.

HardyM
Posts: 6
Joined: Fri Oct 29, 2021 10:27 pm

Re: Slow webserver after upgrade from ESP8266 to ESP32

Postby HardyM » Mon Nov 22, 2021 8:25 am

I'm also seeing issues with the ESP32 camera web server demo (expanded with my own application)
But even the default application has issues too I find.
I'm feeding paged read from SD Card and I've done some profiling.
The card data gets read and then passed to httpd_resp_send which can take many seconds to return the data - often timing out.
Usually a power off / on again will sort it.
I've seen lots of questions about this - is it a wifi thing ? How to get the wifi debugging info might be handy to know.
Regards
Hardy

Who is online

Users browsing this forum: No registered users and 41 guests