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

Joining WiFi sometimes fails. Be more graceful #4

Open
SmittyHalibut opened this issue May 14, 2021 · 6 comments
Open

Joining WiFi sometimes fails. Be more graceful #4

SmittyHalibut opened this issue May 14, 2021 · 6 comments
Labels
enhancement New feature or request

Comments

@SmittyHalibut
Copy link
Owner

Sometimes, when joining wifi on boot, it just keeps writing . to the TFT and never succeeds. Be more graceful with wifi connection failures.

  • Timeout and retry?
  • Timeout and error on the TFT?
  • Better error messages. Can we detect if the wifi password is incorrect so a misconfiguration and occasional failure don't look the same?
@RedNax67
Copy link
Collaborator

Option to skip and run off RTC... (maybe people take it somewhere to demo.. who knows)

@RedNax67
Copy link
Collaborator

Maybe this will help?

/* Set the ESP to be a WiFi-client, otherwise by default, it acts as both a client and an access-point

  • and can cause network-issues with other WiFi-devices on your WiFi-network. */
    WiFi.mode(WIFI_STA);

This came from a very easy way to handle timezones. It's basically built in.. see here: https://github.com/G6EJD/ESP_Simple_Clock_Functions

@SmittyHalibut
Copy link
Owner Author

I added your suggested code: WiFi.mode(WIFI_STA); It seems a reasonable thing to do anyway.

@aly-fly
Copy link
Collaborator

aly-fly commented Jan 10, 2023

Mark, I think this is an old issue, never had any problems mentioned above. Probably you can close this as resolved?

@SmittyHalibut
Copy link
Owner Author

SmittyHalibut commented Jan 10, 2023

But! But! But! I opened it! </sarcasm>

Yeah, you're probably right. This was firmware from ages ago, and the WiFi code has changed dramatically since then.

Resolving.

@SmittyHalibut
Copy link
Owner Author

@ExplodingLemur just reported this problem happening to him. Reopening.

Its probably a good idea to put some retry logic around wifi connection failures. That seems reasonable.

@aly-fly aly-fly added the enhancement New feature or request label Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants