Skip to content

Commit

Permalink
Added endpoint id for Thread network commissioning instance
Browse files Browse the repository at this point in the history
  • Loading branch information
DejinChen committed May 31, 2024
1 parent 896f802 commit 3c29376
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,12 @@ static_assert(OPENTHREAD_API_VERSION >= 219, "OpenThread version too old");
// Network commissioning
namespace {
#ifndef _NO_NETWORK_COMMISSIONING_DRIVER_
#ifndef CHIP_DEVICE_CONFIG_THREAD_NETWORK_ENDPOINT_ID
#define CHIP_DEVICE_CONFIG_THREAD_NETWORK_ENDPOINT_ID (0)
#endif
NetworkCommissioning::GenericThreadDriver sGenericThreadDriver;
app::Clusters::NetworkCommissioning::Instance sThreadNetworkCommissioningInstance(0 /* Endpoint Id */, &sGenericThreadDriver);
app::Clusters::NetworkCommissioning::Instance
sThreadNetworkCommissioningInstance(CHIP_DEVICE_CONFIG_THREAD_NETWORK_ENDPOINT_ID /* Endpoint Id */, &sGenericThreadDriver);
#endif

void initNetworkCommissioningThreadDriver(void)
Expand Down

0 comments on commit 3c29376

Please sign in to comment.