Skip to content

Issue with the WPS connection #3824

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

Open
hoekma opened this issue Nov 12, 2017 · 0 comments
Open

Issue with the WPS connection #3824

hoekma opened this issue Nov 12, 2017 · 0 comments

Comments

@hoekma
Copy link

hoekma commented Nov 12, 2017

----------------------------- Remove above -----------------------------

Basic Infos

Requesting additional consideration for previously unresolved closed issue

Hardware

Hardware

Hardware: ESP-12
Core Version: 2.3

Description

Referencing issue 3563 .

ESP8266WiFiSTAClass::disconnect erases saved WiFi connection

@igrr --

I have been trying to stabilize your suggested workaround to store the old WiFi SSID and password and restore it if WiFi is unavailable. Unfortunately the WPS-generated credential continues to be lost intermittently. The only thing I can think of is that the device is interrupted somehow before restoring the previous WiFi credential. The result is that the device going permanently offline pending user intervention to press the WPS button on the WiFi endpoint. It's not a solution for a commercial IoT project.

Please reconsider your position on this. It is a big presumption that the developer/user wants to erase previous WPS-generated WiFi credentials if WiFi.begin() fails to connect to a WiFi endpoint. I cannot imagine a valid use case for this. I also don't see a stable workaround other than creating my own proprietary version of ESP8266WiFiSTA.cpp as per my original issue to prevent the erasure of WiFi credentials in the first place.

Thank you for your consideration.

Settings in IDE

Module: NodeMCU 1.0 (ESP-12E Module)
Flash Size: 4M
CPU Frequency: 80Mhz
Flash Mode: qio
Flash Frequency: 40Mhz
Upload Using: SERIAL

Sketch

SEE SKETCH FROM issue 3563 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants