{"action":"created","issue":{"url":"https://api.github.com/repos/esp8266/Arduino/issues/1494","labels_url":"https://api.github.com/repos/esp8266/Arduino/issues/1494/labels{/name}","comments_url":"https://api.github.com/repos/esp8266/Arduino/issues/1494/comments","events_url":"https://api.github.com/repos/esp8266/Arduino/issues/1494/events","html_url":"https://github.com/esp8266/Arduino/issues/1494","id":128430233,"number":1494,"title":"ESP.eraseConfig() does not seem to clear SDK Wifi Credentials","user":{"login":"hallard","id":2471931,"avatar_url":"https://avatars.githubusercontent.com/u/2471931?v=3","gravatar_id":"","url":"https://api.github.com/users/hallard","html_url":"https://github.com/hallard","followers_url":"https://api.github.com/users/hallard/followers","following_url":"https://api.github.com/users/hallard/following{/other_user}","gists_url":"https://api.github.com/users/hallard/gists{/gist_id}","starred_url":"https://api.github.com/users/hallard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hallard/subscriptions","organizations_url":"https://api.github.com/users/hallard/orgs","repos_url":"https://api.github.com/users/hallard/repos","events_url":"https://api.github.com/users/hallard/events{/privacy}","received_events_url":"https://api.github.com/users/hallard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-24T22:34:52Z","updated_at":"2016-01-27T00:44:59Z","closed_at":null,"body":"Does the `ESP.eraseConfig()` should also erase SDK Wifi Credentials ? \r\nI've 2 button on my Web Interface to do \r\n* Reset (just reset the board)\r\n* Factory Reset to clear all and reset.\r\n\r\nFactory 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.\r\n\r\nUnfortunately, 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!!)\r\nAnyone tried this with success ? "},"comment":{"url":"https://api.github.com/repos/esp8266/Arduino/issues/comments/175315427","html_url":"https://github.com/esp8266/Arduino/issues/1494#issuecomment-175315427","issue_url":"https://api.github.com/repos/esp8266/Arduino/issues/1494","id":175315427,"user":{"login":"hallard","id":2471931,"avatar_url":"https://avatars.githubusercontent.com/u/2471931?v=3","gravatar_id":"","url":"https://api.github.com/users/hallard","html_url":"https://github.com/hallard","followers_url":"https://api.github.com/users/hallard/followers","following_url":"https://api.github.com/users/hallard/following{/other_user}","gists_url":"https://api.github.com/users/hallard/gists{/gist_id}","starred_url":"https://api.github.com/users/hallard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hallard/subscriptions","organizations_url":"https://api.github.com/users/hallard/orgs","repos_url":"https://api.github.com/users/hallard/repos","events_url":"https://api.github.com/users/hallard/events{/privacy}","received_events_url":"https://api.github.com/users/hallard/received_events","type":"User","site_admin":false},"created_at":"2016-01-27T00:44:59Z","updated_at":"2016-01-27T00:44:59Z","body":"@igrr \r\nyou're absolutely right, It did the trick ;-)\r\nI just replaced \r\n```\r\n*((int*) 0) = 0;\r\n```\r\nby a watchdog reset, it works but is it correct ?\r\n```\r\n// Fire Watchdog Reset\r\nwhile(1);\r\n```\r\nthanks\r\n"}}