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;