Skip to content
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

Configurator not loading / "The connection was reset" #3

Closed
DustinWatts opened this issue Oct 31, 2020 · 2 comments
Closed

Configurator not loading / "The connection was reset" #3

DustinWatts opened this issue Oct 31, 2020 · 2 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@DustinWatts
Copy link
Owner

It seems that when the webserver is loading large files or handeling multiple requests in rapid succession, the configurator does not load properly. The connection seems to hang.

Debug output from the ESP32:

handleFileRead: /
[D][WiFiClient.cpp:509] connected(): Disconnected: RES: 0, ERR: 128
[E][WebServer.cpp:617] _handleRequest(): request handler not found

A possible solution is found on issue #2560 on the Espressif Arduino-ESP32 Github found here.

I have modified 1.0.4\tools\sdk\include\config\sdkconfig.h and changed the following lines:

#define CONFIG_ESP32_WIFI_AMPDU_RX_ENABLED 1
#define CONFIG_ESP32_WIFI_AMPDU_TX_ENABLED 1

to:

#define CONFIG_ESP32_WIFI_AMPDU_RX_ENABLED 0
#define CONFIG_ESP32_WIFI_AMPDU_TX_ENABLED 0

This has drastically improved loading the configurator and has reduced the connection resets to being sporadic. This can then be resolved by refreshing the page.

@DustinWatts DustinWatts added bug Something isn't working help wanted Extra attention is needed labels Oct 31, 2020
@DustinWatts DustinWatts self-assigned this Oct 31, 2020
@DustinWatts
Copy link
Owner Author

DustinWatts commented Nov 1, 2020

One other thing that seems to help is to include the JavaScript code that is in the files bigarrays.js and buttonfunctions.js between <script> ... place the code here ... </script> tags in the index.html and not as a link to the JavaScript files (e.g. <script src="bigarrays.js></script>)

@DustinWatts
Copy link
Owner Author

#3 (comment) Didn't do enough so version 0.9.0 (80686a0) uses ESPAsynWebServer instead. To reduce the number of requests to the ESP32 both JavaScript files mentioned above are still not linked but directly in the .htm file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant