Skip to content

Commit

Permalink
Add default timeout to fix KVS error when fetching ExtendedTimoutConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
michalbudzon-q committed Nov 17, 2021
1 parent cbd3e95 commit 28bec34
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/platform/qpg/app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ using namespace ::chip::Inet;
using namespace ::chip::DeviceLayer;
using namespace ::chip::DeviceLayer::Internal;

namespace {
constexpr int extDiscTimeoutSecs = 20;
}

/*****************************************************************************
* Macro Definitions
*****************************************************************************/
Expand Down Expand Up @@ -122,6 +126,10 @@ CHIP_ERROR CHIP_Init(void)
}
#endif // CHIP_ENABLE_OPENTHREAD

#if CHIP_DEVICE_CONFIG_ENABLE_EXTENDED_DISCOVERY
chip::app::MdnsServer::Instance().SetExtendedDiscoveryTimeoutSecs(extDiscTimeoutSecs);
#endif

ChipLogProgress(NotSpecified, "Starting Platform Manager Event Loop");
ret = PlatformMgr().StartEventLoopTask();
if (ret != CHIP_NO_ERROR)
Expand Down

0 comments on commit 28bec34

Please sign in to comment.