Skip to content

Can't connect to WiFi with latest git #4398

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

Closed
aaron-neal opened this issue Feb 20, 2018 · 4 comments
Closed

Can't connect to WiFi with latest git #4398

aaron-neal opened this issue Feb 20, 2018 · 4 comments

Comments

@aaron-neal
Copy link

aaron-neal commented Feb 20, 2018

I upgraded to the latest git to try out SDK 2.2.0 and since then the WiFi is not able to connect.

The WiFi debug output is saying:

reconnect
scandone"
no SSID_NAME found, reconnect after 1s

The SSID does exist, and was working immediately before the upgrade.
The WiFi setup routine I use:

WiFi.hostname(config.apSSID);   
WiFi.mode(WIFI_AP_STA); // Configure AP and Station
WiFi.softAP(config.apSSID, config.apPassword);    //set AP settings
if(config.wifiSettings.ssid != ""){  //if config has an ssid to use
     Serial.println(F("Begin WiFi"));
     WiFi.begin(config.wifiSettings.ssid, config.wifiSettings.password);
}

The access point which is also created here works fine, once it connects (unstable while trying to connect to an access point)

I believe previously I was on core 2.4.0 and SDk 2.1.0, returning back to this everything works as expected.

Is there a anything required to clear SDK settings when switching between the two?

Using platformio if it makes any difference.

@igrr igrr added this to the 2.4.1 milestone Feb 20, 2018
@igrr
Copy link
Member

igrr commented Feb 20, 2018

@d-a-v and myself have noticed this as well.

Once merged, #4380 will offer a way to erase WiFi settings while uploading sketch.

There also needs to be a fix for this in the core, so that we can support OTA from 2.4.0 to 2.4.1.

@aaron-neal
Copy link
Author

Ok, I will use 2.4.0 for now. I personally use platformio a lot. I'm guessing the menu would not work, but an erase config function will.

igrr added a commit that referenced this issue Feb 22, 2018
- Fixes WiFi not being able to reconnect after SDK update (#4398)
- Fixes increased current in light sleep mode
- Fixes return value documentation for wifi_{get,set}_country
@igrr
Copy link
Member

igrr commented Feb 22, 2018

Created #4412 which fixes this issue.

igrr added a commit that referenced this issue Feb 22, 2018
- Fixes WiFi not being able to reconnect after SDK update (#4398)
- Fixes increased current in light sleep mode
- Fixes return value documentation for wifi_{get,set}_country
@aaron-neal
Copy link
Author

I can confirm that this seems to have done the trick! Thanks for your quick response.

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