Skip to content

Commit

Permalink
Disable the second network commissioning endpoint for ESP32 all-clust…
Browse files Browse the repository at this point in the history
…ers-app. (#15546)

We don't use that endpoint, and should not be enabling it.
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Jan 15, 2024
1 parent 6219fe1 commit 588bda7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/all-clusters-app/esp32/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -628,13 +628,18 @@ class AppCallbacks : public AppDelegate

AppCallbacks sCallbacks;

constexpr EndpointId kNetworkCommissioningEndpointSecondary = 0xFFFE;

} // namespace

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();
Expand Down

0 comments on commit 588bda7

Please sign in to comment.