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

In the environment which having a weak WiFi signal, WiFi.status() took a long long time. #4798

Closed
kalsolio opened this issue Jun 8, 2018 · 1 comment

Comments

@kalsolio
Copy link

kalsolio commented Jun 8, 2018

with the Correct SSID and password, if the wifi is so week, Visible, but very weak , WiFi.status() will took many Minutes.
ps. if the wifi is not found, or the password is error, .status() will work ok.

origin code:

  Serial1.resetESP();
  delay(3000); //wait while WiFiLink firmware connects to WiFi with Web Panel settings
  WiFi.init(&Serial1);
  Serial.println("wait wifi status...");
  while (WiFi.status() != WL_CONNECTED) {
     delay(100);
  }

After I change it like this, reboot my board to try more times, there is a chance to connect WiFi success

  WiFi.init(&Serial1);
  Serial.println("wait wifi status...");

  wdt_enable(WDTO_8S);
  delay(7000);
  wdt_reset();

  while (WiFi.status() != WL_CONNECTED) {
   delay(100);
  }
@devyte
Copy link
Collaborator

devyte commented Jun 8, 2018

Issue template was completely ignored.
In any case, I'm assuming that this is a duplicate of #4792 .
Closing.

@devyte devyte closed this as completed Jun 8, 2018
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