Skip to content

Commit

Permalink
[icd] integrate ICD management command into CHIP tool (project-chip#3…
Browse files Browse the repository at this point in the history
…0863)

* [icd] integrate ICD management command into CHIP tool

* Delete entry on failure

* Fix build
  • Loading branch information
erjiaqing authored and thivya-amazon committed Dec 12, 2023
1 parent 0e0dc19 commit 3ed9aa7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/chip-tool/commands/common/CHIPCommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ CHIP_ERROR CHIPCommand::MaybeSetUpStack()
// TODO: Implement persistent ICD storage for the chip-tool.
ReturnLogErrorOnFailure(sICDClientStorage.Init(&mDefaultStorage, &sSessionKeystore));

// chip-tool uses a non-persistent keystore.
// ICD storage lifetime is currently tied to the chip-tool's lifetime. Since chip-tool interactive mode is currently used for
// ICD commissioning and check-in validation, this temporary storage meets the test requirements.
// TODO: Implement persistent ICD storage for the chip-tool.
ReturnLogErrorOnFailure(sICDClientStorage.Init(&mDefaultStorage, &sSessionKeystore));

chip::Controller::FactoryInitParams factoryInitParams;

factoryInitParams.fabricIndependentStorage = &mDefaultStorage;
Expand Down

0 comments on commit 3ed9aa7

Please sign in to comment.