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
ae32fcd
commit 433d788
Showing
19 changed files
with
2,511 additions
and
86 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Copyright (c) 2020-2021 Project CHIP Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
import("//build_overrides/chip.gni") | ||
import("//build_overrides/nlassert.gni") | ||
import("${chip_root}/src/crypto/crypto.gni") | ||
import("${chip_root}/src/platform/device.gni") | ||
|
||
static_library("commissioner") { | ||
output_name = "libCommissioner" | ||
|
||
sources = [ | ||
"Commissionee.h", | ||
"Events.h", | ||
"ExampleCommissioningStateMachine.cpp", | ||
"ExampleCommissioningStateMachine.h", | ||
"States.h", | ||
] | ||
|
||
public_deps = [ | ||
"${chip_root}/src/controller", | ||
"${chip_root}/src/lib/core", | ||
"${chip_root}/src/lib/dnssd", | ||
"${chip_root}/src/lib/support", | ||
"${chip_root}/src/platform", | ||
"${chip_root}/src/setup_payload", | ||
] | ||
} |
Oops, something went wrong.