WiFiSmartConfig does not work anymore. Am I the only one?

Cellie
Posts: 45
Joined: Sat Feb 27, 2016 9:47 pm

WiFiSmartConfig does not work anymore. Am I the only one?

Postby Cellie » Fri Sep 29, 2017 4:52 pm

-EDIT: It is an issue in the WiFi code, and Espressif is aware and working on it.

I noticed that in my project the WiFi smart config option did not work anymore.
The code I use is based on the example code below and written 2 months ago.

Then tried to compile and run the 'WifiSmartConfig.ino' example sketch.
But the 'WiFiSmartConfig' example sketch does also not work / connect anymore.

This is the example 'WiFiSmartConfig.ino'. Does not work.

Compiled on Core Installation/update date: v3.0-dev-745-gc4e65d6a

Code: Select all

void setup() {
  Serial.begin(115200);

  //Init WiFi as Station, start SmartConfig
  WiFi.mode(WIFI_AP_STA);
  WiFi.beginSmartConfig();

  //Wait for SmartConfig packet from mobile
  Serial.println("Waiting for SmartConfig.");
  while (!WiFi.smartConfigDone()) {
    delay(500);
    Serial.print(".");
  }

  Serial.println("");
  Serial.println("SmartConfig received.");

  //Wait for WiFi to connect to AP
  Serial.println("Waiting for WiFi");
  while (WiFi.status() != WL_CONNECTED) {
    delay(500);
    Serial.print(".");
  }

  Serial.println("WiFi Connected.");

  Serial.print("IP Address: ");
  Serial.println(WiFi.localIP());
}

void loop() {
  // put your main code here, to run repeatedly:

}
I am getting this debug output:

Code: Select all

bootmessages blabla...

entry 0x40078a14
[D][WiFiGeneric.cpp:215] _eventCallback(): Event: 2 - STA_START
[D][WiFiGeneric.cpp:215] _eventCallback(): Event: 13 - AP_STOP
[D][WiFiGeneric.cpp:215] _eventCallback(): Event: 14 - AP_STACONNECTED
Waiting for SmartConfig.
......[D][WiFiSTA.cpp:621] _smartConfigCallback(): Status: FIND_CHANNEL
...........[D][WiFiSTA.cpp:621] _smartConfigCallback(): Status: GETTING_SSID_PSWD
[D][WiFiSTA.cpp:624] _smartConfigCallback(): Type: ESPTOUCH
.....[D][WiFiSTA.cpp:621] _smartConfigCallback(): Status: LINK
[D][WiFiSTA.cpp:627] _smartConfigCallback(): SSID: huiskamer
.
SmartConfig received.
Waiting for WiFi
..[D][WiFiGeneric.cpp:215] _eventCallback(): Event: 5 - STA_DISCONNECTED
[W][WiFiGeneric.cpp:220] _eventCallback(): Reason: 201 - AUTH_FAIL
.....................................................................
Already opened an issue at Espressif Github.

I am positively sure my PW is correct, just want some confirmation ( or denial ) that this behaviour is true on all setups.

ulisse
Posts: 1
Joined: Sun Oct 29, 2017 7:45 am

Re: WiFiSmartConfig does not work anymore. Am I the only one?

Postby ulisse » Sun Oct 29, 2017 7:48 am

i have same problem. someone has solved, it has news about.

Who is online

Users browsing this forum: No registered users and 51 guests