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

Ability to set connect timeout in WifiMulti->run #7420

Merged
merged 2 commits into from
Jul 1, 2020

Conversation

MikaelBertze
Copy link
Contributor

@MikaelBertze MikaelBertze commented Jul 1, 2020

WifiMulti->run has a built in timeout when connecting set to 5s. In some cases this is not enough time to set up the connection.

I noticed that my ESP-boards quite often failed to connect to my wifi if my repeater mode AP was selected as the strongest SSID. Don't know the reason for the slow connection setup, but my other devices connect without issue.

For Esp32, the 5s timeout was added some time ago based on this project (https://github.com/espressif/arduino-esp32/pull/1220/files). They implemented it a bit different where the timeout could be altered and with a default set to 5s.

I made a PR that changes the API to the same as for Esp32.

@MikaelBertze MikaelBertze changed the title Ability to set connect timeout in for WifiMulti->run Ability to set connect timeout in WifiMulti->run Jul 1, 2020
Copy link
Collaborator

@d-a-v d-a-v left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks !
For the sake of clarity I would rename the variable connectTimeoutMs

@MikaelBertze
Copy link
Contributor Author

Thanks !
For the sake of clarity I would rename the variable connectTimeoutMs

Done!

@d-a-v d-a-v merged commit f1651fb into esp8266:master Jul 1, 2020
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

Successfully merging this pull request may close these issues.

None yet

2 participants