-
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.
Improve DeviceCommissioner::StopPairing behavior (#32233)
* Prefix DeviceCommissioner members with 'm' * Move OnBasic* into DeviceCommissioner as private helpers * Consistently check for presence of mDefaultCommissioner first * Darwin: Reduce boilerplate in MTRError and use switch * Darwin: Add MTRErrorCodeCancelled * Darwin: Extend MTRPairingTests to cover cancellation * Improve DeviceCommissioner::StopPairing behavior Improve StopPairing behavior by cancelling the current read or invoke interaction to avoid stray callbacks messing up a future commissioning attempt. Rename SendCommand to SendCommissioningCommand. * Make gLogFilter atomic to avoid races / TSAN failures Note that most constrained platforms build with CHIP_LOG_FILTERING=0 so will not be incurring any extra runtime cost because of this change. * Exclude Darwin code from PRI*64 lint * Document InvokeCancelFn as internal-only * Address review comments - Log VerifyOrDie failures at Error level instead of Detail - Use reset() for clearing UniquePtr * Improve logging for commissioning - Log when commissioning is complete (SendCommissioningCompleteCallbacks) - Consolidate logging in AutoCommissioner::CommissioningStepFinished - Also rely on VerifyOrDie in Variant instead of bug log message * Another logging tweak
- Loading branch information
1 parent
9b38860
commit 4783aa4
Showing
10 changed files
with
342 additions
and
220 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
Oops, something went wrong.