Smartconfig fails to retrieve WiFi credentials
- Dominant language
- C++
- Stars
- 16.7k
- Forks
- 13.1k
- PR merge metrics
- No merged PRs in 30d
Description
### Basic Infos
- [x] This issue complies with the [issue POLICY doc](https://github.com/esp8266/Arduino/blob/master/POLICY.md).
- [x] I have read the documentation at [readthedocs](https://arduino-esp8266.readthedocs.io/en/latest) and the issue is not addressed there.
- [x] I have tested that the issue is present in current master branch (aka latest git).
- [x] I have searched the issue tracker for a similar issue.
- [x] If there is a stack dump, I have decoded it.
- [x] I have filled out all fields below.
#### Platform
- Hardware: ESP-01|
- Core Version: 3.0.2
- Development Env: Arduino IDE/Platformio
- Operating System: MacOS
### Settings in IDE
- Module: Generic ESP8266 Module
- Flash Mode: dout
- Flash Size: 1MB
- lwip Variant: Unknown
- Reset Method: nodemcu
- Flash Frequency: [40Mhz]
- CPU Frequency: 80Mhz|
- Upload Using: SERIAL
- Upload Speed: 115200
### Problem Description
I’m trying to use esp8266 smart config but it fails to connect. There’s no error message shown and after inspecting the smart config app UDP message using WireShark, I see that the UDP messages are sent correctly.
### [MCVE](https://stackoverflow.com/help/mcve) Sketch
```cpp
#include
#include
#include
#include "smartconfig.h"
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
Serial.setDebugOutput(true);
WiFi.mode(WIFI_STA);
delay(500);
esptouch_set_timeout(20);
// timeout
WiFi.beginSmartConfig();
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
Serial.println(WiFi.smartConfigDone());
}
Serial.println("WiFi connected");
Serial.println(WiFi.localIP());
}
```
### Debug Messages

Wireshark logs:

I’ve tried adding some more logs in _smartConfigCallback to find out what actually happens and it looks like it’s trying to find a channel.
Also, I saw that my smartconfig version is v2.5.4 and in other posts, I see that people are using version 2.9.0. Tried looking for a way to upgrade the version but found no resources on that as well.
Is it an issue with the version of smartconfig that I’m using? Is there a way to view more debugging logs so I could figure out what the exact issue is?
Thanks a lot!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.