-
Notifications
You must be signed in to change notification settings - Fork 13.3k
WebServer lagging #5582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Is the WiFi client trying unsuccessfully to connect to an SSID? Turn on WiFi debugging and see what you get? |
Hello, Thank you SDK:2.2.1(cfd48f3)/Core:2.4.2/lwIP:2.0.3(STABLE-2_0_3_RELEASE/glue:arduino-2.4.1-13-g163bb82)/BearSSL:6d1cefc bcn 0 |
This may have been addressed by TCP-SACK-OUT from lwIP-2.1.2. |
It doesn't helped. Problem is the same, plus in version 2.5.0 beta2 doesn't work SD file upload function server.streamFile(); ESP will reboot after calling it. |
Can you provide another MCVE with softAP, |
This code fails with this error message: loading/201901.csv
line 395 |
I found a bug in the sdfat lib very much like this crash, where SPI transfers were not aligned to 32-bits (it was actually in the comments that it didn't need to be aligned...which is wrong). See earlephilhower/ESP8266SdFat@ff64b2d I think only the raw upstream lib has this issue, not the old one included w/the Arduino 8266 core. |
edit: SPI issue is fixed (#4967) |
Closing due to age and lack of feedback since the SPI fix. |
Basic Infos
Platform
Settings in IDE
Problem Description
Hello,
I'm trying to transfer data from ESP8266 using JSONfile, but I deal with huge lagging. Normaly, the response time is about 250 ms. But sometimes it rises to tens od seconds. I have also tried to modify example code from library to response with empty .json file for every request (without any additional processes), but the issue is still on.
On the screenshot you can see laging during using javascript for refreshing the overview.json every 1000 ms.
MCVE Sketch
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
/* Set these to your desired credentials. */
const char *ssid = "ssid";
const char *password = "";
ESP8266WebServer server(80);
/* Just a little test message. Go to http://192.168.4.1 in a web browser
connected to this access point to see it.
*/
void handleRoot() {
server.send(200, "application/json", "{}");
}
void setup() {
delay(1000);
Serial.begin(115200);
Serial.println();
Serial.print("Configuring access point...");
/* You can remove the password parameter if you want the AP to be open. */
WiFi.softAP(ssid, password);
IPAddress myIP = WiFi.softAPIP();
Serial.print("AP IP address: ");
Serial.println(myIP);
server.on("/overview.json", handleRoot);
server.begin();
Serial.println("HTTP server started");
}
void loop() {
server.handleClient();
}
Debug Messages
The text was updated successfully, but these errors were encountered: