From 588bda70c3fc2bb937366700e644884177e7c39c Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Fri, 25 Feb 2022 01:54:48 -0500 Subject: [PATCH] Disable the second network commissioning endpoint for ESP32 all-clusters-app. (#15546) We don't use that endpoint, and should not be enabling it. --- examples/all-clusters-app/esp32/main/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/all-clusters-app/esp32/main/main.cpp b/examples/all-clusters-app/esp32/main/main.cpp index 42ce1c5fe3403a..48a39620469577 100644 --- a/examples/all-clusters-app/esp32/main/main.cpp +++ b/examples/all-clusters-app/esp32/main/main.cpp @@ -628,6 +628,8 @@ class AppCallbacks : public AppDelegate AppCallbacks sCallbacks; +constexpr EndpointId kNetworkCommissioningEndpointSecondary = 0xFFFE; + } // namespace static void InitServer(intptr_t context) @@ -635,6 +637,9 @@ static void InitServer(intptr_t context) // Init ZCL Data Model and CHIP App Server chip::Server::GetInstance().Init(&sCallbacks); + // We only have network commissioning on endpoint 0. + emberAfEndpointEnableDisable(kNetworkCommissioningEndpointSecondary, false); + // Initialize device attestation config SetDeviceAttestationCredentialsProvider(Examples::GetExampleDACProvider()); NetWorkCommissioningInstInit();