Skip to content

Commit 9c5bdd0

Browse files
pidarpedandy31415
andcommitted
Pass largepayload flag into CommandSender in IM test app.
Use the session information from DeviceProxy to construct CommandSender for large payload if session supports it. Co-authored-by: Andrei Litvin <andy314@gmail.com>
1 parent 8ba371a commit 9c5bdd0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/app/tests/suites/commands/interaction_model/InteractionModel.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,9 @@ class InteractionModelCommands
252252
chip::app::CommandPathParams commandPath = { endpointId, clusterId, commandId,
253253
(chip::app::CommandPathFlags::kEndpointIdValid) };
254254
auto commandSender = std::make_unique<chip::app::CommandSender>(
255-
mCallback, device->GetExchangeManager(), mTimedInteractionTimeoutMs.HasValue(), mSuppressResponse.ValueOr(false));
255+
mCallback, device->GetExchangeManager(), mTimedInteractionTimeoutMs.HasValue(), mSuppressResponse.ValueOr(false),
256+
device->GetSecureSession().Value()->AllowsLargePayload());
257+
256258
VerifyOrReturnError(commandSender != nullptr, CHIP_ERROR_NO_MEMORY);
257259

258260
chip::app::CommandSender::AddRequestDataParameters addRequestDataParams(mTimedInteractionTimeoutMs);

0 commit comments

Comments
 (0)