Skip to content

Commit a83a839

Browse files
rsqfrsqf
rsqf
authored and
rsqf
committed
Changes in CHIPDeviceController.h
1 parent e887e58 commit a83a839

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/controller/CHIPDeviceController.h

+10-2
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,11 @@ class DLL_EXPORT DeviceController : public AbstractDnssdDiscoveryController
247247
chip::Callback::Callback<OnDeviceConnectionFailure> * onFailure)
248248
{
249249
VerifyOrReturnError(mState == State::Initialized, CHIP_ERROR_INCORRECT_STATE);
250-
mSystemState->CASESessionMgr()->FindOrEstablishSession(ScopedNodeId(peerNodeId, GetFabricIndex()), onConnection, onFailure);
250+
mSystemState->CASESessionMgr()->FindOrEstablishSession(ScopedNodeId(peerNodeId, GetFabricIndex()), onConnection, onFailure,
251+
#if CHIP_DEVICE_CONFIG_ENABLE_AUTOMATIC_CASE_RETRIES
252+
1, nullptr,
253+
#endif // CHIP_DEVICE_CONFIG_ENABLE_AUTOMATIC_CASE_RETRIES
254+
TransportPayloadCapability::kLargePayload);
251255
return CHIP_NO_ERROR;
252256
}
253257

@@ -271,7 +275,11 @@ class DLL_EXPORT DeviceController : public AbstractDnssdDiscoveryController
271275
{
272276
VerifyOrReturnError(mState == State::Initialized, CHIP_ERROR_INCORRECT_STATE);
273277
mSystemState->CASESessionMgr()->FindOrEstablishSession(ScopedNodeId(peerNodeId, GetFabricIndex()), onConnection,
274-
onSetupFailure);
278+
onSetupFailure,
279+
#if CHIP_DEVICE_CONFIG_ENABLE_AUTOMATIC_CASE_RETRIES
280+
1, nullptr,
281+
#endif // CHIP_DEVICE_CONFIG_ENABLE_AUTOMATIC_CASE_RETRIES
282+
TransportPayloadCapability::kLargePayload);
275283
return CHIP_NO_ERROR;
276284
}
277285

0 commit comments

Comments
 (0)