[GH-ISSUE #599] first http request is slow than following ones #499

Closed
opened 2026-02-28 01:25:35 +03:00 by kerem · 8 comments
Owner

Originally created by @sohaibilyas on GitHub (Apr 25, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/599

i edited the library files just to add few more buttons with javascript ajax alright so when i open the config portal with ip it takes around 5-10 seconds for the first time so its like when i turn off wifi on my phone come back again in few minutes, connect to it and then again it takes the same amount of time but just with the FIRST REQUEST so does esp8266 sleep when no requests are coming for specific period of time or what! kindly guide me on this and thank you so much for this amazing library <3

Originally created by @sohaibilyas on GitHub (Apr 25, 2018). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/599 i edited the library files just to add few more buttons with javascript ajax alright so when i open the config portal with ip it takes around 5-10 seconds for the first time so its like when i turn off wifi on my phone come back again in few minutes, connect to it and then again it takes the same amount of time but just with the FIRST REQUEST so does esp8266 sleep when no requests are coming for specific period of time or what! kindly guide me on this and thank you so much for this amazing library <3
kerem closed this issue 2026-02-28 01:25:36 +03:00
Author
Owner

@tablatronix commented on GitHub (Apr 25, 2018):

Which branch? There is a sleep there is also ap scans in the bg possibly

<!-- gh-comment-id:384263882 --> @tablatronix commented on GitHub (Apr 25, 2018): Which branch? There is a sleep there is also ap scans in the bg possibly
Author
Owner

@sohaibilyas commented on GitHub (Apr 25, 2018):

master branch, haven't tested other branches like dev or hotfixes? ive seen something like scanning aps in asyncwifimanager (line 443-449) maybe developer added that to make the esp never sleep! could we also do that in this library!

<!-- gh-comment-id:384268802 --> @sohaibilyas commented on GitHub (Apr 25, 2018): master branch, haven't tested other branches like dev or hotfixes? ive seen something like scanning aps in [asyncwifimanager](https://github.com/alanswx/ESPAsyncWiFiManager/blob/master/ESPAsyncWiFiManager.cpp) (line 443-449) maybe developer added that to make the esp never sleep! could we also do that in this library!
Author
Owner

@tablatronix commented on GitHub (Apr 25, 2018):

You can try disabling sleep mode, I think the default is modem

wifi_set_sleep_type(NONE_SLEEP_T);

Also maybe try a newer versions of esp lib

<!-- gh-comment-id:384272034 --> @tablatronix commented on GitHub (Apr 25, 2018): You can try disabling sleep mode, I think the default is `modem` `wifi_set_sleep_type(NONE_SLEEP_T);` Also maybe try a newer versions of esp lib
Author
Owner

@tablatronix commented on GitHub (Apr 25, 2018):

This issue seems to be maybe related?
https://github.com/esp8266/Arduino/issues/2330

<!-- gh-comment-id:384272337 --> @tablatronix commented on GitHub (Apr 25, 2018): This issue seems to be maybe related? https://github.com/esp8266/Arduino/issues/2330
Author
Owner

@sohaibilyas commented on GitHub (Apr 25, 2018):

alright im going to try this now, i could try dev branch without any documentations but not really familiar with c++, thanks :)

<!-- gh-comment-id:384276971 --> @sohaibilyas commented on GitHub (Apr 25, 2018): alright im going to try this now, i could try dev branch without any documentations but not really familiar with c++, thanks :)
Author
Owner

@tablatronix commented on GitHub (Apr 25, 2018):

Yeah no prob, it should work the same, it just some new stuff added
You should be able to do that in your own code to set the sleep in setup.

#500

<!-- gh-comment-id:384280770 --> @tablatronix commented on GitHub (Apr 25, 2018): Yeah no prob, it should work the same, it just some new stuff added You should be able to do that in your own code to set the sleep in setup. #500
Author
Owner

@tablatronix commented on GitHub (Apr 25, 2018):

testing development just tells me if this is a bug in wm or not, I have not personally noticed this issue but I will try to reproduce also if I have time

<!-- gh-comment-id:384283508 --> @tablatronix commented on GitHub (Apr 25, 2018): testing development just tells me if this is a bug in wm or not, I have not personally noticed this issue but I will try to reproduce also if I have time
Author
Owner

@sohaibilyas commented on GitHub (Apr 30, 2018):

this is just amazing, it was my phone, huawei p10 lite, i tried with my brother's huawei mate 10 lite and i got the portal right away so i think my phone has more apps than my brother's and those apps may be sending too many requests in the background as soon as it gets connected to any wifi :) for now closing it because it is still "may be" 😄

<!-- gh-comment-id:385328081 --> @sohaibilyas commented on GitHub (Apr 30, 2018): this is just amazing, it was my phone, huawei p10 lite, i tried with my brother's huawei mate 10 lite and i got the portal right away so i think my phone has more apps than my brother's and those apps may be sending too many requests in the background as soon as it gets connected to any wifi :) for now closing it because it is still "may be" 😄
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#499
No description provided.