Skip to content

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

Open
@avispeng

Description

@avispeng

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions