components/esp_matter_bridge: add or remove bridged device in console

This commit is contained in:
chendejin
2024-07-26 12:26:12 +08:00
parent 4d617ed2de
commit 5389422cd1
4 changed files with 316 additions and 1 deletions
@@ -449,6 +449,9 @@ esp_err_t factory_reset()
err = nvs_erase_all(handle);
nvs_commit(handle);
nvs_close(handle);
for (size_t idx = 0; idx < MAX_BRIDGED_DEVICE_COUNT; ++idx) {
bridged_endpoint_id_array[idx] = chip::kInvalidEndpointId;
}
return err;
}