Skip to content

ESP.eraseConfig() does not seem to clear SDK Wifi Credentials #1494

Closed
@hallard

Description

@hallard

Does the ESP.eraseConfig() should also erase SDK Wifi Credentials ?
I've 2 button on my Web Interface to do

  • Reset (just reset the board)
  • Factory Reset to clear all and reset.

Factory Reset restore my default board config settings including clearing my client SSID and PSK, and then call a ESP.eraseConfig()to also clear SDK config. Then issue a normal reset.

Unfortunately, just after Factory Reset, my board reset and then connect to my Old Access point even if I don't call Wifi setting and connection (because my config is empty on those settings, yeah cleared that!!)
Anyone tried this with success ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions