Skip to content

Commit

Permalink
[Silabs] Added log entry to signal provision mode enable. (project-ch…
Browse files Browse the repository at this point in the history
  • Loading branch information
rcasallas-silabs authored and yyzhong-g committed Dec 11, 2024
1 parent 75dc99e commit 403ec08
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/platform/silabs/MatterConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,13 +230,14 @@ CHIP_ERROR SilabsMatterConfig::InitMatter(const char * appName)

ReturnErrorOnFailure(PlatformMgr().InitChipStack());

chip::DeviceLayer::ConnectivityMgr().SetBLEDeviceName(appName);

// Provision Manager
Silabs::Provision::Manager & provision = Silabs::Provision::Manager::GetInstance();
ReturnErrorOnFailure(provision.Init());
SetDeviceInstanceInfoProvider(&provision.GetStorage());
SetCommissionableDataProvider(&provision.GetStorage());

chip::DeviceLayer::ConnectivityMgr().SetBLEDeviceName(appName);
ChipLogProgress(DeviceLayer, "Provision mode %s", provision.IsProvisionRequired() ? "ENABLED" : "disabled");

#if CHIP_ENABLE_OPENTHREAD
ReturnErrorOnFailure(InitOpenThread());
Expand Down

0 comments on commit 403ec08

Please sign in to comment.