You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 20, 2025. It is now read-only.
This time I am reporting that the Server seems slower than a couple of weeks ago. I haven't changed my code since then. I actually made the CSS and HTML lighter.
All of the files are minified and sent to the server using SPIFFS.
While the ESP32 is in AP mode, the ESPAsyncWebServer gets hangs and I get some "infinite loading" after some time. The first 2-3 refreshes work well.
While it does NOT crash it sends me warnings:
Closing the browser and trying again seems to fix it.
While in STATION mode, it works fairly fine for an undefined period of time, even after multiple refreshes.
The only thing that I do not like in this situation is the fact that it's slow and after long-ish period of times in which a web-page was left open in the browser, upon refreshing the page or clicking a submit button, it sends either one of the following warnings or both:
[W][AsyncTCP.cpp:883] _poll(): pcb is NULL
[W][AsyncTCP.cpp:903] _poll(): rx timeout 4
Accessing any page, refreshing, saving inputs value by pressing submit buttons and changing pages all take around 10 seconds to perform. It didn't take this long.
Here is some code.
These are all the handlers I use for a simple log-in page:
While the HTML for this particular page doesn't have any JS on it, I felt like I had to mention that the server has a handler that sends a 99 kB JS file whenever it needs to.
<!DOCTYPE html>
<html>
<head>
<meta charset = "utf-8">
<meta name = "viewport" content = "width=device-width, initial-scale=1.0">
<!-- Chrome, Firefox OS and Opera -->
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png?v=476mA4zprB">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png?v=476mA4zprB">
<link rel="shortcut icon" href="/favicon.ico?v=476mA4zprB">
<!-- Tab Color iOS Safari -->
<meta name="apple-mobile-web-app-title" content="#e11422">
<meta name="application-name" content="#e11422">
<!-- Tab Color Android Chrome -->
<meta name="theme-color" content="#e11422">
<link rel = "stylesheet" type = "text/css" href = "newMaster.css">
<title>Login Page</title>
</head>
<body>
<div class = "logo_container"> <img url="/logo.png"></div>
<div class="center_box">
<div class = "box_head">
<div class = "title"><h1>Setup - User</h1></div>
</div>
<form method = "post" action="/register">
<div class ="text_input">
<input type="text" placeholder="Username" name="userName" value="" pattern=".{5,30}" required title="Enter between 5 and 30 characters">
</div>
<div class="text_input">
<input type="password" placeholder="Password" name="userPassword" value="" pattern=".{8,63}" required title="Enter between 8 and 63 characters">
</div>
<input class = "button" type="submit" name="register" value="Save" >
</form>
<form method = "post" action = "/button">
<input class = "button" type="submit" name="skip" value="Skip" title = "Proceed to IP Configuration page">
</form>
</div>
</body>
</html>
I am using two forms in this page, like I do in some other pages that are on the web-server.
The first one is to save the values that someone will input. It redirects to the next page by using: request->redirect("/IP-Config");.
The second one is to skip the user creation and jump straight to the next page. And this form is somewhat different from the first one. For this redirect to work I had to make a server handler for the button: server.on("/button", HTTP_POST, [](AsyncWebServerRequest * request) that then redirects the user to the desired page: request->redirect("/IP-Config");.
EDIT:
After an hour of letting the ESP32 in STA Mode and a web-page open in the browser I got a Guru Meditation Error:
0x400887fd: rtc_clk_slow_freq_set at /Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/soc/esp32/rtc_clk.c line 256
The issue with this is that after the reboot, the code that's on the ESP32 does NOT work. The serial monitor doesn't say a thing. I have to manually reset the ESP by pressing the on-board reset button.
The text was updated successfully, but these errors were encountered:
Hello ! It's me again.
This time I am reporting that the Server seems slower than a couple of weeks ago. I haven't changed my code since then. I actually made the CSS and HTML lighter.
All of the files are minified and sent to the server using SPIFFS.
While the ESP32 is in AP mode, the
ESPAsyncWebServer
gets hangs and I get some "infinite loading" after some time. The first 2-3 refreshes work well.While it does NOT crash it sends me warnings:
Closing the browser and trying again seems to fix it.
While in STATION mode, it works fairly fine for an undefined period of time, even after multiple refreshes.
The only thing that I do not like in this situation is the fact that it's slow and after long-ish period of times in which a web-page was left open in the browser, upon refreshing the page or clicking a submit button, it sends either one of the following warnings or both:
Accessing any page, refreshing, saving inputs value by pressing submit buttons and changing pages all take around 10 seconds to perform. It didn't take this long.
Here is some code.
These are all the handlers I use for a simple log-in page:
While the HTML for this particular page doesn't have any JS on it, I felt like I had to mention that the server has a handler that sends a 99 kB JS file whenever it needs to.
I am using two forms in this page, like I do in some other pages that are on the web-server.
The first one is to save the values that someone will input. It redirects to the next page by using:
request->redirect("/IP-Config");
.The second one is to skip the user creation and jump straight to the next page. And this form is somewhat different from the first one. For this redirect to work I had to make a server handler for the button:
server.on("/button", HTTP_POST, [](AsyncWebServerRequest * request)
that then redirects the user to the desired page:request->redirect("/IP-Config");
.EDIT:
After an hour of letting the ESP32 in STA Mode and a web-page open in the browser I got a Guru Meditation Error:
The issue with this is that after the reboot, the code that's on the ESP32 does NOT work. The serial monitor doesn't say a thing. I have to manually reset the ESP by pressing the on-board reset button.
The text was updated successfully, but these errors were encountered: