Skip to content

Commit e521a26

Browse files
samples: matter: Fix doorlock auto-relock
The Matter Lock sample did not react to auto-relock after invoking this request by the controller. The issue was that the callback for this feature was not implemented in the Lock sample. Signed-off-by: Arkadiusz Balys <[email protected]>
1 parent 908d8e8 commit e521a26

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,10 @@ Keys samples
310310
Matter samples
311311
--------------
312312

313-
|no_changes_yet_note|
313+
* :ref:`matter_lock_sample` sample:
314+
315+
* Added a callback for the auto-relock feature.
316+
This resolves the :ref:`known issue <known_issues>` KRKNWK-20691.
314317

315318
Networking samples
316319
------------------

samples/matter/lock/src/zcl_callbacks.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,11 @@ bool emberAfPluginDoorLockOnDoorUnlockCommand(EndpointId endpointId, const Nulla
8989
return success;
9090
}
9191

92+
void emberAfPluginDoorLockOnAutoRelock(chip::EndpointId endpointId)
93+
{
94+
BoltLockMgr().Lock(BoltLockManager::OperationSource::kAuto);
95+
}
96+
9297
void emberAfDoorLockClusterInitCallback(EndpointId endpoint)
9398
{
9499
DoorLockServer::Instance().InitServer(endpoint);

0 commit comments

Comments
 (0)