Skip to content

Commit

Permalink
[Infineon] Add QR code URL for CYW30739 (#21743)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinHsiao authored Aug 9, 2022
1 parent 10dcc87 commit 2e10854
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion examples/lighting-app/cyw30739/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <OTAConfig.h>
#endif
#include <app/clusters/identify-server/identify-server.h>
#include <app/server/OnboardingCodesUtil.h>
#include <app/server/Server.h>
#include <credentials/examples/DeviceAttestationCredsExample.h>
#include <inet/EndPointStateOpenThread.h>
Expand Down Expand Up @@ -148,7 +149,8 @@ void InitApp(intptr_t args)
ConfigurationMgr().LogDeviceConfig();

PlatformMgrImpl().AddEventHandler(EventHandler, 0);

// Print QR Code URL
PrintOnboardingCodes(chip::RendezvousInformationFlag(chip::RendezvousInformationFlag::kBLE));
/* Start CHIP datamodel server */
static chip::CommonCaseDeviceServerInitParams initParams;
(void) initParams.InitializeStaticResourcesBeforeServerInit();
Expand Down
4 changes: 3 additions & 1 deletion examples/lock-app/cyw30739/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#endif
#include <app/clusters/door-lock-server/door-lock-server.h>
#include <app/clusters/identify-server/identify-server.h>
#include <app/server/OnboardingCodesUtil.h>
#include <app/server/Server.h>
#include <credentials/examples/DeviceAttestationCredsExample.h>
#include <inet/EndPointStateOpenThread.h>
Expand Down Expand Up @@ -173,7 +174,8 @@ void InitApp(intptr_t args)
{
CHIP_ERROR err = CHIP_NO_ERROR;
PlatformMgrImpl().AddEventHandler(EventHandler, 0);

// Print QR Code URL
PrintOnboardingCodes(chip::RendezvousInformationFlag(chip::RendezvousInformationFlag::kBLE));
/* Start CHIP datamodel server */
static chip::CommonCaseDeviceServerInitParams initParams;
(void) initParams.InitializeStaticResourcesBeforeServerInit();
Expand Down

0 comments on commit 2e10854

Please sign in to comment.