@@ -288,19 +288,22 @@ void LockManager::ActuatorMovementTimerEventHandler(AppEvent * aEvent)
288
288
}
289
289
}
290
290
291
- bool LockManager::Lock (chip::EndpointId endpointId, const Optional<chip::ByteSpan> & pin, OperationErrorEnum & err)
291
+ bool LockManager::Lock (chip::EndpointId endpointId, const Nullable<chip::FabricIndex> & fabricIdx,
292
+ const Nullable<chip::NodeId> & nodeId, const Optional<chip::ByteSpan> & pin, OperationErrorEnum & err)
292
293
{
293
- return setLockState (endpointId, DlLockState::kLocked , pin, err);
294
+ return setLockState (endpointId, fabricIdx, nodeId, DlLockState::kLocked , pin, err);
294
295
}
295
296
296
- bool LockManager::Unlock (chip::EndpointId endpointId, const Optional<chip::ByteSpan> & pin, OperationErrorEnum & err)
297
+ bool LockManager::Unlock (chip::EndpointId endpointId, const Nullable<chip::FabricIndex> & fabricIdx,
298
+ const Nullable<chip::NodeId> & nodeId, const Optional<chip::ByteSpan> & pin, OperationErrorEnum & err)
297
299
{
298
- return setLockState (endpointId, DlLockState::kUnlocked , pin, err);
300
+ return setLockState (endpointId, fabricIdx, nodeId, DlLockState::kUnlocked , pin, err);
299
301
}
300
302
301
- bool LockManager::Unbolt (chip::EndpointId endpointId, const Optional<chip::ByteSpan> & pin, OperationErrorEnum & err)
303
+ bool LockManager::Unbolt (chip::EndpointId endpointId, const Nullable<chip::FabricIndex> & fabricIdx,
304
+ const Nullable<chip::NodeId> & nodeId, const Optional<chip::ByteSpan> & pin, OperationErrorEnum & err)
302
305
{
303
- return setLockState (endpointId, DlLockState::kUnlocked , pin, err);
306
+ return setLockState (endpointId, fabricIdx, nodeId, DlLockState::kUnlocked , pin, err);
304
307
}
305
308
306
309
bool LockManager::GetUser (chip::EndpointId endpointId, uint16_t userIndex, EmberAfPluginDoorLockUserInfo & user)
@@ -664,7 +667,8 @@ const char * LockManager::lockStateToString(DlLockState lockState) const
664
667
return " Unknown" ;
665
668
}
666
669
667
- bool LockManager::setLockState (chip::EndpointId endpointId, DlLockState lockState, const Optional<chip::ByteSpan> & pin,
670
+ bool LockManager::setLockState (chip::EndpointId endpointId, const Nullable<chip::FabricIndex> & fabricIdx,
671
+ const Nullable<chip::NodeId> & nodeId, DlLockState lockState, const Optional<chip::ByteSpan> & pin,
668
672
OperationErrorEnum & err)
669
673
{
670
674
@@ -683,7 +687,8 @@ bool LockManager::setLockState(chip::EndpointId endpointId, DlLockState lockStat
683
687
ChipLogDetail (Zcl, " Door Lock App: setting door lock state to \" %s\" [endpointId=%d]" , lockStateToString (lockState),
684
688
endpointId);
685
689
686
- DoorLockServer::Instance ().SetLockState (endpointId, lockState);
690
+ DoorLockServer::Instance ().SetLockState (endpointId, lockState, OperationSourceEnum::kRemote , NullNullable, NullNullable,
691
+ fabricIdx, nodeId);
687
692
688
693
return true ;
689
694
}
@@ -708,7 +713,8 @@ bool LockManager::setLockState(chip::EndpointId endpointId, DlLockState lockStat
708
713
" Lock App: specified PIN code was found in the database, setting lock state to \" %s\" [endpointId=%d]" ,
709
714
lockStateToString (lockState), endpointId);
710
715
711
- DoorLockServer::Instance ().SetLockState (endpointId, lockState);
716
+ DoorLockServer::Instance ().SetLockState (endpointId, lockState, OperationSourceEnum::kRemote , NullNullable, NullNullable,
717
+ fabricIdx, nodeId);
712
718
713
719
return true ;
714
720
}
0 commit comments