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

Generate lock operation events after lock state has changed #27991

Conversation

mmarc
Copy link
Contributor

@mmarc mmarc commented Jul 17, 2023

Fixes #26925

fabricIdx and nodeId are now passed to the LockEndpoint so that they can be then later forwarded again back to the door-lock-server when updating the lock state.
So now with remote operations (same as with other operations before) the LockOperationEvent is generated together with the change of the lock state.
Only exception is if an error occurs (credential/pin error) before the execution. That error will be returned directly to the HandleRemoteLockOperation and stored immediately.

@mmarc mmarc force-pushed the 26925-lock-operation-events-after-lock-state-change branch from cc6375a to c524dab Compare July 17, 2023 15:12
@mmarc mmarc force-pushed the 26925-lock-operation-events-after-lock-state-change branch from ce8436f to 88c0999 Compare July 20, 2023 07:52
@mmarc mmarc force-pushed the 26925-lock-operation-events-after-lock-state-change branch from 88c0999 to 53e551b Compare July 20, 2023 09:42
examples/lock-app/lock-common/src/LockEndpoint.cpp Outdated Show resolved Hide resolved
examples/lock-app/lock-common/src/LockEndpoint.cpp Outdated Show resolved Hide resolved
examples/lock-app/lock-common/src/LockEndpoint.cpp Outdated Show resolved Hide resolved
examples/lock-app/lock-common/src/LockEndpoint.cpp Outdated Show resolved Hide resolved
src/app/clusters/door-lock-server/door-lock-server.h Outdated Show resolved Hide resolved
src/app/clusters/door-lock-server/door-lock-server.h Outdated Show resolved Hide resolved
src/app/tests/suites/DL_LockUnlock.yaml Outdated Show resolved Hide resolved
src/app/tests/suites/DL_LockUnlock.yaml Outdated Show resolved Hide resolved
src/app/tests/suites/certification/Test_TC_DRLK_2_1.yaml Outdated Show resolved Hide resolved
@mmarc mmarc force-pushed the 26925-lock-operation-events-after-lock-state-change branch from 9f91729 to dad4b1c Compare July 21, 2023 06:24
@mergify mergify bot merged commit 8f7dd90 into project-chip:master Jul 22, 2023
@mmarc mmarc deleted the 26925-lock-operation-events-after-lock-state-change branch July 22, 2023 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Door lock server is sending LockOperation events before lock operations are complete
4 participants