Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add commissioning complete callback and timer. #6673

Merged
merged 1 commit into from
May 11, 2021

Conversation

cecille
Copy link
Contributor

@cecille cecille commented May 11, 2021

Adds a timer to the arm failsafe call, and generates a device event
(kCommissioningComplete) when the commissioning complete call happens
or when the failsafe timer is triggered.

Problem

Arm failsafe and commissioning complete commands don't currently do anything.

Summary of Changes

Adds a timer to the arm failsafe call, and generates a device event
(kCommissioningComplete) when the commissioning complete call happens
or when the failsafe timer is triggered

Fixes #6672

Adds a timer to the arm failsafe call, and generates a device event
(kCommissioningComplete) when the commissioning complete call happens
or when the failsafe timer is triggered.
@@ -28,17 +28,32 @@ namespace chip {
namespace DeviceLayer {
namespace Internal {

void CommissioningTimerFunction(System::Layer * layer, void * aAppState, System::Error aError)
{
DeviceControlServer * server = reinterpret_cast<DeviceControlServer *>(aAppState);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: static_cast would be enough

@andy31415 andy31415 merged commit 310df8f into project-chip:master May 11, 2021
@cecille cecille deleted the arm_failsafe branch June 9, 2021 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

General commissioning cluster - armfailsafe and commissioning complete commands.
5 participants