From d1db9f9c71f78c7b6c0a0756e8afeb9565313328 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Tue, 18 Apr 2023 20:29:22 -0400 Subject: [PATCH] Log the onboarding codes in the esp32 bridge-app example. Fixes https://github.com/project-chip/connectedhomeip/issues/26152 --- examples/bridge-app/esp32/main/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/bridge-app/esp32/main/main.cpp b/examples/bridge-app/esp32/main/main.cpp index f0762ef631749b..4f92a657949466 100644 --- a/examples/bridge-app/esp32/main/main.cpp +++ b/examples/bridge-app/esp32/main/main.cpp @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include @@ -361,6 +362,8 @@ const EmberAfDeviceType gBridgedOnOffDeviceTypes[] = { { DEVICE_TYPE_LO_ON_OFF_L static void InitServer(intptr_t context) { + PrintOnboardingCodes(chip::RendezvousInformationFlags(CONFIG_RENDEZVOUS_MODE)); + Esp32AppServer::Init(); // Init ZCL Data Model and CHIP App Server AND Initialize device attestation config // Set starting endpoint id where dynamic endpoints will be assigned, which