Skip to content

Commit c30f32f

Browse files
pidarpedandy31415
andauthored
Pass largepayload flag into CommandSender in IM test app. (#33976)
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 71e0eb9 commit c30f32f

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)