Skip to content

WiFiSTAClass::disconnect(bool wifioff, bool eraseap) to return false when erase of AP info fails #8067

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
1 task done
hemeleerse opened this issue Apr 12, 2023 · 2 comments · Fixed by #8148
Closed
1 task done
Labels
Status: Solved Type: Feature request Feature request for Arduino ESP32

Comments

@hemeleerse
Copy link

Related area

WiFi

Hardware specification

ESP32 devkit

Is your feature request related to a problem?

I'm trying to make the ESP32 connect to the AP with the best signal strength.
Therefore I'm doing a WifiScan, find the BSSID & channel with the strongest signal, do a disconnect(false, true) to erase previous AP info and then do WiFi.begin with the BSSID and channel.
As the disconnect does not return false when the erasure fails, I'm not sure if the erase succeeded

Describe the solution you'd like

Have the disconnect function return false when erasure of the AP info fails

Describe alternatives you've considered

No response

Additional context

No response

I have checked existing list of Feature requests and the Contribution Guide

  • I confirm I have checked existing list of Feature requests and Contribution Guide.
@hemeleerse hemeleerse added the Type: Feature request Feature request for Arduino ESP32 label Apr 12, 2023
@mrengineer7777 mrengineer7777 added the Status: Needs investigation We need to do some research before taking next steps on this issue label Apr 12, 2023
@mrengineer7777
Copy link
Collaborator

@hemeleerse In my opinion disconnect and erase should be separate functions. Would it be acceptable to introduce a new eraseAP() function?

@mrengineer7777
Copy link
Collaborator

Also it appears disconnect will only erase the AP info if the WiFi Mode() has STA enabled.

This was referenced Apr 28, 2023
@mrengineer7777 mrengineer7777 added Status: Solved and removed Status: Needs investigation We need to do some research before taking next steps on this issue labels May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Solved Type: Feature request Feature request for Arduino ESP32
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants