Skip to content

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

Closed
@hemeleerse

Description

@hemeleerse

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions