Skip to content

Commit

Permalink
Python: Add TestOnlyCommissionableDataProvider to pychip_server_nativ…
Browse files Browse the repository at this point in the history
…e_init()
  • Loading branch information
sandeepmistry committed Sep 14, 2022
1 parent 2d82c4d commit 5de23ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/controller/python/chip/server/ServerInit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

#include <platform/CHIPDeviceLayer.h>
#include <platform/PlatformManager.h>
#include <platform/TestOnlyCommissionableDataProvider.h>

#include <app/server/OnboardingCodesUtil.h>
#include <app/server/Server.h>
Expand Down Expand Up @@ -138,6 +139,9 @@ void pychip_server_native_init()
ChipLogError(DeviceLayer, "Failed to initialize CHIP stack: platform init failed: %s", chip::ErrorStr(err));
}

static chip::DeviceLayer::TestOnlyCommissionableDataProvider TestOnlyCommissionableDataProvider;
chip::DeviceLayer::SetCommissionableDataProvider(&TestOnlyCommissionableDataProvider);

ConfigurationMgr().LogDeviceConfig();

PrintOnboardingCodes(chip::RendezvousInformationFlag(chip::RendezvousInformationFlag::kBLE));
Expand Down

0 comments on commit 5de23ef

Please sign in to comment.