forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The commissioning state machine operates without dependence on the chip::Controller::DeviceCommissioner, CommissioneeDeviceProxy, CASEClient or CASESessionManager objects. And using the recently introduced StateMachine utility in src/lib, the needed flexibility for ecosystem-specific commissioning flows is available. The state machine is separated into two primary resources: * CommissioningStates.h with templates that can support all commissioners * ExampleCommissioningStateMachine.h, a concrete implementation that uses the states and provides an example that apps can copy, modify, and extend App implementations can add, remove and reorder states as necessary. Arbitrarily complex async UI logic is also easily achieved without the need to define any callback delegate interfaces. This implicitly fixes issues like project-chip#11917 (Refactor DeviceAttestationVerifier to have Async interface). ExampleCommissioningStateMachine takes the place of DeviceCommissioner in chip-tool, providing feature parity. chip-tool now uses the new code to commission devices, and on success then places them into a DeviceController for persistence and subsequent interaction. Fixes project-chip#7951
- Loading branch information
1 parent
ba00049
commit 72b4d37
Showing
17 changed files
with
2,957 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.