-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more prints to AutoCommissioner/CASESessionManager (#14736)
* Add more prints to AutoCommissioner/CASESessionManager This not only provides more insights into the mechanics of the commissioning state machinery but the state transitions with the controller-side CASE session machinery. This is needed to debug some hairy race conditions when commissioning onto multiple fabrics. * Update src/app/OperationalDeviceProxy.cpp Co-authored-by: Michael Sandstedt <[email protected]> * Review feedback + some more prints. * Minor fixups. * Missed a file Co-authored-by: Justin Wood <[email protected]> Co-authored-by: Michael Sandstedt <[email protected]>
- Loading branch information
Showing
14 changed files
with
168 additions
and
17 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,111 @@ | ||
/* | ||
* | ||
* Copyright (c) 2021 Project CHIP Authors | ||
* All rights reserved. | ||
* | ||
* 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. | ||
*/ | ||
|
||
#include <controller/CommissioningDelegate.h> | ||
|
||
namespace chip { | ||
namespace Controller { | ||
|
||
const char * StageToString(CommissioningStage stage) | ||
{ | ||
switch (stage) | ||
{ | ||
case kError: | ||
return "Error"; | ||
break; | ||
|
||
case kSecurePairing: | ||
return "SecurePairing"; | ||
break; | ||
|
||
case kArmFailsafe: | ||
return "ArmFailSafe"; | ||
break; | ||
|
||
case kConfigRegulatory: | ||
return "ConfigRegulatory"; | ||
break; | ||
|
||
case kSendPAICertificateRequest: | ||
return "SendPAICertificateRequest"; | ||
break; | ||
|
||
case kSendDACCertificateRequest: | ||
return "SendDACCertificateRequest"; | ||
break; | ||
|
||
case kSendAttestationRequest: | ||
return "SendAttestationRequest"; | ||
break; | ||
|
||
case kAttestationVerification: | ||
return "AttestationVerification"; | ||
break; | ||
|
||
case kSendOpCertSigningRequest: | ||
return "SendOpCertSigningRequest"; | ||
break; | ||
|
||
case kGenerateNOCChain: | ||
return "GenerateNOCChain"; | ||
break; | ||
|
||
case kSendTrustedRootCert: | ||
return "SendTrustedRootCert"; | ||
break; | ||
|
||
case kSendNOC: | ||
return "SendNOC"; | ||
break; | ||
|
||
case kWiFiNetworkSetup: | ||
return "WiFiNetworkSetup"; | ||
break; | ||
|
||
case kThreadNetworkSetup: | ||
return "ThreadNetworkSetup"; | ||
break; | ||
|
||
case kWiFiNetworkEnable: | ||
return "WiFiNetworkEnable"; | ||
break; | ||
|
||
case kThreadNetworkEnable: | ||
return "ThreadNetworkEnable"; | ||
break; | ||
|
||
case kFindOperational: | ||
return "FindOperational"; | ||
break; | ||
|
||
case kSendComplete: | ||
return "SendComplete"; | ||
break; | ||
|
||
case kCleanup: | ||
return "Cleanup"; | ||
break; | ||
|
||
default: | ||
return "???"; | ||
break; | ||
} | ||
} | ||
|
||
} // namespace Controller | ||
} // namespace chip |
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