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

AP SSID goes back to default wifi101-xxxx after re-entering provision mode #313

Open
avispeng opened this issue Jul 26, 2021 · 0 comments
Open
Labels
type: imperfection Perceived defect in any part of project

Comments

@avispeng
Copy link

Hi. I have encountered an issue when working with AP mode. We call WiFi.startProvision() to put the device into provision mode and we pass a custom SSID to this function. WiFi.status() is checked in a loop and if it becomes WL_DISCONNECTED(probably wrong credentials are submitted), we put the device into AP mode again by calling WiFi.startProvision(). The issue is the custom SSID isn't respected when re-entering AP mode. It became the default wifi101-xxxx.
Am I doing anything wrong? Any help will be appreciated. Thanks.

do {
  WiFi.startProvision(customSsid, customUrl, 1);
  while (WiFi.status() == WL_PROVISIONING)
  {
    delay(10);
  }
  // out of provisioning mode
} while (WiFi.status() != WL_CONNECTED); // if not connected, put it back to provisioning mode
@per1234 per1234 added the type: imperfection Perceived defect in any part of project label Jul 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: imperfection Perceived defect in any part of project
Projects
None yet
Development

No branches or pull requests

2 participants