Skip to content

Commit

Permalink
Fix 'Failed to get extended timeout configuration' error (#13280)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmpprk authored and pull[bot] committed Dec 6, 2023
1 parent 8ed1d33 commit a18396a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/lighting-app/nrfconnect/main/AppTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <app-common/zap-generated/attribute-id.h>
#include <app-common/zap-generated/attribute-type.h>
#include <app-common/zap-generated/cluster-id.h>
#include <app/server/Dnssd.h>
#include <app/server/OnboardingCodesUtil.h>
#include <app/server/Server.h>
#include <app/util/attribute-storage.h>
Expand Down Expand Up @@ -56,6 +57,7 @@ namespace {

constexpr int kFactoryResetTriggerTimeout = 3000;
constexpr int kFactoryResetCancelWindowTimeout = 3000;
constexpr int kExtDiscoveryTimeoutSecs = 20;
constexpr int kAppEventQueueSize = 10;
constexpr int kExampleVendorID = 0xabcd;
constexpr uint8_t kButtonPushEvent = 1;
Expand Down Expand Up @@ -126,6 +128,10 @@ int AppTask::Init()
ConfigurationMgr().LogDeviceConfig();
PrintOnboardingCodes(chip::RendezvousInformationFlags(chip::RendezvousInformationFlag::kBLE));

#if defined(CHIP_DEVICE_CONFIG_ENABLE_EXTENDED_DISCOVERY)
chip::app::DnssdServer::Instance().SetExtendedDiscoveryTimeoutSecs(kExtDiscoveryTimeoutSecs);
#endif

#if defined(CONFIG_CHIP_NFC_COMMISSIONING)
PlatformMgr().AddEventHandler(ChipEventHandler, 0);
#endif
Expand Down

0 comments on commit a18396a

Please sign in to comment.