From 0a9e8717c302b9e2c8d27d5a0bd0b9932cca1ff8 Mon Sep 17 00:00:00 2001 From: Douglas Rocha Ferraz Date: Wed, 4 May 2022 03:25:51 -0400 Subject: [PATCH] fix: enabled extended discovery on chef/nrfconnect (#18022) Change-Id: I10d6456465f48134d1f8c5f5cbc257dd50dbb839 --- examples/chef/nrfconnect/CHIPProjectConfig.h | 2 ++ examples/chef/nrfconnect/main.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/examples/chef/nrfconnect/CHIPProjectConfig.h b/examples/chef/nrfconnect/CHIPProjectConfig.h index 2bd41247a382f9..58bb5cb20597c4 100644 --- a/examples/chef/nrfconnect/CHIPProjectConfig.h +++ b/examples/chef/nrfconnect/CHIPProjectConfig.h @@ -35,3 +35,5 @@ #define CHIP_CONFIG_ENABLE_ARG_PARSER 1 #define CHIP_DEVICE_CONFIG_DISABLE_SHELL_PING 1 + +#define CHIP_DEVICE_CONFIG_ENABLE_EXTENDED_DISCOVERY 1 diff --git a/examples/chef/nrfconnect/main.cpp b/examples/chef/nrfconnect/main.cpp index 669ef9663a00ef..f44994170b420e 100644 --- a/examples/chef/nrfconnect/main.cpp +++ b/examples/chef/nrfconnect/main.cpp @@ -84,7 +84,9 @@ CHIP_ERROR main() // Device Attestation & Onboarding codes chip::Credentials::SetDeviceAttestationCredentialsProvider(chip::Credentials::Examples::GetExampleDACProvider()); +#if CHIP_DEVICE_CONFIG_ENABLE_EXTENDED_DISCOVERY chip::app::DnssdServer::Instance().SetExtendedDiscoveryTimeoutSecs(kExtDiscoveryTimeoutSecs); +#endif /* CHIP_DEVICE_CONFIG_ENABLE_EXTENDED_DISCOVERY */ // Start IM server static chip::CommonCaseDeviceServerInitParams initParams;