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

Cannot Change Wifi Connect Timeout #509

Closed
smallbraingames opened this issue Oct 29, 2024 · 1 comment
Closed

Cannot Change Wifi Connect Timeout #509

smallbraingames opened this issue Oct 29, 2024 · 1 comment

Comments

@smallbraingames
Copy link

When connecting to wifi, a timeout of 15 seconds is hard coded here (https://github.com/esp-rs/esp-idf-svc/blob/7cf3a9ac4a43c8eba6ead60321e53019a9e3564b/src/wifi.rs#L2422C1-L2431C1).

I have a use case where I want to give users feedback faster than this. Is there a reason why this timeout is so long? Could it be made configurable?

@ivmarkov
Copy link
Collaborator

If you notice the implementation of this method is only using public API. Therefore, if you want to have a connect with a custom timeout, you can simply copy-paste the three lines of code in your own code and then adjust the timeout.

@github-project-automation github-project-automation bot moved this from Todo to Done in esp-rs Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants