diff --git a/examples/fabric-sync/admin/BridgeSubscription.cpp b/examples/fabric-sync/admin/BridgeSubscription.cpp index 1df9371ff74dff..a6778a0f0324e6 100644 --- a/examples/fabric-sync/admin/BridgeSubscription.cpp +++ b/examples/fabric-sync/admin/BridgeSubscription.cpp @@ -28,7 +28,7 @@ namespace admin { namespace { constexpr uint16_t kSubscribeMinInterval = 0; -constexpr uint16_t kSubscribeMaxInterval = 60; +constexpr uint16_t kSubscribeMaxInterval = 30; void OnDeviceConnectedWrapper(void * context, Messaging::ExchangeManager & exchangeMgr, const SessionHandle & sessionHandle) { diff --git a/examples/fabric-sync/admin/DeviceSubscription.cpp b/examples/fabric-sync/admin/DeviceSubscription.cpp index 9379df6910f84a..65f65f94cd3bd2 100644 --- a/examples/fabric-sync/admin/DeviceSubscription.cpp +++ b/examples/fabric-sync/admin/DeviceSubscription.cpp @@ -32,6 +32,9 @@ namespace admin { namespace { +constexpr uint16_t kSubscribeMinInterval = 0; +constexpr uint16_t kSubscribeMaxInterval = 10; + void OnDeviceConnectedWrapper(void * context, Messaging::ExchangeManager & exchangeMgr, const SessionHandle & sessionHandle) { reinterpret_cast(context)->OnDeviceConnected(exchangeMgr, sessionHandle); @@ -160,7 +163,9 @@ void DeviceSubscription::OnDeviceConnected(Messaging::ExchangeManager & exchange readParams.mpAttributePathParamsList = readPaths; readParams.mAttributePathParamsListSize = 1; - readParams.mMaxIntervalCeilingSeconds = 5 * 60; + readParams.mMinIntervalFloorSeconds = kSubscribeMinInterval; + readParams.mMaxIntervalCeilingSeconds = kSubscribeMaxInterval; + readParams.mKeepSubscriptions = true; CHIP_ERROR err = mClient->SendRequest(readParams);