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 Sep 30, 2024
1 parent b7b429e commit 92cac02
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 92cac02

Please sign in to comment.