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

first http request is slow than following ones #599

Closed
sohaibilyas opened this issue Apr 25, 2018 · 8 comments
Closed

first http request is slow than following ones #599

sohaibilyas opened this issue Apr 25, 2018 · 8 comments

Comments

@sohaibilyas
Copy link

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

@tablatronix
Copy link
Collaborator

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

@sohaibilyas
Copy link
Author

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!

@tablatronix
Copy link
Collaborator

tablatronix commented 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

@tablatronix
Copy link
Collaborator

This issue seems to be maybe related?
esp8266/Arduino#2330

@sohaibilyas
Copy link
Author

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

@tablatronix
Copy link
Collaborator

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

@tablatronix
Copy link
Collaborator

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

@sohaibilyas
Copy link
Author

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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants