@@ -567,6 +567,8 @@ void ContentAppFactoryImpl::AddAdminVendorId(uint16_t vendorId)
567
567
mAdminVendorIds .push_back (vendorId);
568
568
}
569
569
570
+
571
+
570
572
class DevicePairedCommand : public Controller ::DevicePairingDelegate
571
573
{
572
574
public:
@@ -597,8 +599,12 @@ class DevicePairedCommand : public Controller::DevicePairingDelegate
597
599
" and vendor id: %d and product id: %d" ,
598
600
ChipLogValueX64 (cbContext->nodeId ), cbContext->vendorId , cbContext->productId );
599
601
602
+ #if CHIP_DEVICE_CONFIG_APP_PLATFORM_ENABLED
603
+
600
604
GetCommissionerDiscoveryController ()->CommissioningSucceeded (cbContext->vendorId , cbContext->productId ,
601
605
cbContext->nodeId , exchangeMgr, sessionHandle);
606
+
607
+ #endif // CHIP_DEVICE_CONFIG_APP_PLATFORM_ENABLED
602
608
}
603
609
}
604
610
@@ -686,7 +692,7 @@ void ContentAppFactoryImpl::InstallContentApp(uint16_t vendorId, uint16_t produc
686
692
nodeIds.insert (tempNodeIds.begin (), tempNodeIds.end ());
687
693
}
688
694
}
689
-
695
+ # if CHIP_DEVICE_CONFIG_APP_PLATFORM_ENABLED
690
696
// refresh ACLs
691
697
for (const auto & nodeId : nodeIds)
692
698
{
@@ -700,6 +706,7 @@ void ContentAppFactoryImpl::InstallContentApp(uint16_t vendorId, uint16_t produc
700
706
GetDeviceCommissioner ()->GetConnectedDevice (nodeId, &pairingCommand->mOnDeviceConnectedCallback ,
701
707
&pairingCommand->mOnDeviceConnectionFailureCallback );
702
708
}
709
+ #endif // CHIP_DEVICE_CONFIG_APP_PLATFORM_ENABLED
703
710
}
704
711
705
712
bool ContentAppFactoryImpl::UninstallContentApp (uint16_t vendorId, uint16_t productId)
0 commit comments