Skip to content

Commit

Permalink
Address review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
yufengwangca committed Nov 15, 2024
1 parent fad5df5 commit e553540
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/fabric-sync/admin/FabricAdmin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,14 @@ FabricAdmin::CommissionRemoteBridge(Controller::CommissioningWindowPasscodeParam

if (err == CHIP_NO_ERROR)
{
NodeId nodeId = DeviceManager::Instance().GetNextAvailableNodeId();
mNodeId = nodeId;
mNodeId = DeviceManager::Instance().GetNextAvailableNodeId();

// After responding with RequestCommissioningApproval to the node where the client initiated the
// RequestCommissioningApproval, you need to wait for it to open a commissioning window on its bridge.
usleep(kCommissionPrepareTimeMs * 1000);

PairingManager::Instance().SetPairingDelegate(this);
DeviceManager::Instance().PairRemoteDevice(nodeId, code.c_str());
DeviceManager::Instance().PairRemoteDevice(mNodeId, code.c_str());
}
else
{
Expand Down

0 comments on commit e553540

Please sign in to comment.