diff --git a/examples/fabric-admin/device_manager/DeviceManager.h b/examples/fabric-admin/device_manager/DeviceManager.h index f59ad286bd7a65..1d667d094e6879 100644 --- a/examples/fabric-admin/device_manager/DeviceManager.h +++ b/examples/fabric-admin/device_manager/DeviceManager.h @@ -99,6 +99,15 @@ class DeviceManager */ bool IsCurrentBridgeDevice(chip::NodeId nodeId) const { return nodeId == mLocalBridgeNodeId || nodeId == mRemoteBridgeNodeId; } + /** + * @brief Determines whether a given nodeId corresponds to the "current local bridge device". + * + * @param nodeId The ID of the node being checked. + * + * @return true if the nodeId matches the local bridge device; otherwise, false. + */ + bool IsLocalBridgeDevice(chip::NodeId nodeId) const { return nodeId == mLocalBridgeNodeId; } + /** * @brief Open the commissioning window for a specific device within its own fabric. * diff --git a/examples/fabric-admin/device_manager/DeviceSynchronization.cpp b/examples/fabric-admin/device_manager/DeviceSynchronization.cpp index 600129d65ab07c..18f84157cf8319 100644 --- a/examples/fabric-admin/device_manager/DeviceSynchronization.cpp +++ b/examples/fabric-admin/device_manager/DeviceSynchronization.cpp @@ -143,7 +143,7 @@ void DeviceSynchronizer::OnReportEnd() void DeviceSynchronizer::OnDone(app::ReadClient * apReadClient) { #if defined(PW_RPC_ENABLED) - if (mState == State::ReceivedResponse && !DeviceManager::Instance().IsCurrentBridgeDevice(mNodeId)) + if (mState == State::ReceivedResponse && !DeviceManager::Instance().IsLocalBridgeDevice(mNodeId)) { GetUniqueId(); if (mState == State::GettingUid)