Skip to content

Commit 820aeec

Browse files
committed
Option to reset the in-memory Matter data as well
1 parent b4ae4c2 commit 820aeec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/persist.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,16 @@ where
4545
}
4646

4747
/// Reset the persist instance, removing all stored data from the non-volatile storage
48-
/// as well as removing all ACLs, fabrics and Wifi networks from the Matter stack.
48+
/// as well as removing all ACLs, fabrics and wireless networks from the Matter stack.
4949
pub async fn reset(&self) -> Result<(), Error> {
5050
let (mut kv, mut buf) = self.store.get().await;
5151

5252
kv.remove(MatterStackKey::Fabrics as _, &mut buf).await?;
5353
kv.remove(MatterStackKey::BasicInfo as _, &mut buf).await?;
5454
kv.remove(MatterStackKey::Networks as _, &mut buf).await?;
5555

56+
self.matter.reset_fabrics();
57+
self.matter.reset_basic_info();
5658
self.networks.reset()?;
5759

5860
Ok(())

0 commit comments

Comments
 (0)