Skip to content

problem reconnect wifi after wifi.disconnect #5227

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
atlask1 opened this issue May 31, 2021 · 2 comments
Closed

problem reconnect wifi after wifi.disconnect #5227

atlask1 opened this issue May 31, 2021 · 2 comments
Labels
Area: BT&Wifi BT & Wifi related issues Status: Stale Issue is stale stage (outdated/stuck)

Comments

@atlask1
Copy link

atlask1 commented May 31, 2021

Hi,
I'm using ESP32 with Arduino core (1.0.6).
My sketch/project use BLE to set wifi credential and to select if connect or not to wifi network.
Until v1.0.3 all work, but with update I find this error when I try to reconnect after 'WiFi.disconnect(true)' or when I change credential:

[663177][E][WiFiGeneric.cpp:983] mode(): Could not set mode! 12289
read from file:/credential.json
{"ssid":"xxxxxxx","psw":"xxxxxxxxxx"}
[663189][E][WiFiGeneric.cpp:983] mode(): Could not set mode! 12289
[663194][E][WiFiSTA.cpp:152] begin(): STA enable failed!

In sketch I read ssid and psw from a json file, I've a task that take care of wifi connection and if I need to change wifi connection or I suspend connection, task perform
WiFi.mode(WIFI_STA);
WIFI.begin(ssid,psw);

I've read this :
#4842 (comment)

but not solve the problem.

What can I do to solve?
It's only my problem or there's other issue like this?
thanks

@VojtechBartoska VojtechBartoska added the Area: BT&Wifi BT & Wifi related issues label Jun 7, 2021
@stale
Copy link

stale bot commented Aug 21, 2021

[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Status: Stale Issue is stale stage (outdated/stuck) label Aug 21, 2021
@stale
Copy link

stale bot commented Sep 6, 2021

[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions.

@stale stale bot closed this as completed Sep 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: BT&Wifi BT & Wifi related issues Status: Stale Issue is stale stage (outdated/stuck)
Projects
None yet
Development

No branches or pull requests

2 participants