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

Why ESPHTTPServer.begin is blocking till wifi connected? #48

Open
leleb opened this issue Feb 14, 2018 · 5 comments
Open

Why ESPHTTPServer.begin is blocking till wifi connected? #48

leleb opened this issue Feb 14, 2018 · 5 comments

Comments

@leleb
Copy link

leleb commented Feb 14, 2018

Do we really need blocking begin function? I would like my system work even if no wifi available.

@species5618
Copy link
Collaborator

good question, and one i will look into ,

@species5618
Copy link
Collaborator

I have had some issues with connections reliability on esp01 unless the WiFi.waitForConnectResult is used

Let me do some tests before I merge your request

@species5618
Copy link
Collaborator

i have had a chance to test, initial connection works well, but reconnect was problematic,
to have a reliable, non blocking solution, it should try and reconnect on a regular basis, to cope with Wi-Fi missing when device is booted,

the wifi stack does have a WiFi.setAutoReconnect(true) option, which i will try later

@species5618
Copy link
Collaborator

having done some testing , WiFi.setAutoReconnect(true) does not seem to need to be explicitly set. but i think it is worth while .

i have also found http://www.esp8266.com/viewtopic.php?p=73157 there are some other issues relating to reconnects

If you can comment out the original code (rather than delete) with a note
about comments out for issue 48, include a link to " http://www.esp8266.com/viewtopic.php?p=73157 " for reference in those comment
add a auto re connect , just in case, 'WiFi.setAutoReconnect(true);

i will merge , thanks

species5618 added a commit that referenced this issue Mar 8, 2018
non blocking Wifi connection (Issue #48)
alvahdean added a commit to alvahdean/FSBrowserNG that referenced this issue Mar 8, 2018
@BauerPh
Copy link
Contributor

BauerPh commented Mar 8, 2018

solved...

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

3 participants