-
Notifications
You must be signed in to change notification settings - Fork 157
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
How to reset matter? factory_reset() not working as expected (CON-693) #570
Comments
Switching to chip::DeviceLayer::ConfigurationMgr().InitiateFactoryReset() seems to solve the problem |
@emmby |
One way I got this to work without relying on the ConfigurationMgr was to call Just be aware this also clears wifi credentials, so I clear NVS ( It's a big hammer, but it works until I can get ConfigurationMgr components included without generating linker errors (I am using the esp-arduino-matter library and it has some limitations. see Yacubane/esp32-arduino-matter#36 (comment)) |
Ah, the reason
Here are the versions I'm using: esp32-arduino-matter-builder v1.0.0-beta6 |
@emmby If you have a backtrace that would help, because I cannot figure out anything from the hex dump. I don't think the problem is when calling |
I see all your changes in pink other than the commented line. Is If yes, then can you please add some debug prints in
Backtrace contains PC:SP pairs. For mapping this backtrace to the code lines, you can use add2line with the generated
|
@emmby were you able to collect the backtrace? |
@emmby If you are still seeing this issue, then please share the backtrace as requested |
I'd like to reset matter when the user hits a button to enable them to reprovision onto a new matter network.
I tried calling esp_matter::factory_reset() per the app_reset example, but on next boot
chip::DeviceLayer::ConfigurationMgr().IsFullyProvisioned()
is still returning true.What is the proper way to reset matter to enable reprovisioning?
The text was updated successfully, but these errors were encountered: