diff --git a/src/app/CommandSender.cpp b/src/app/CommandSender.cpp index ba2bc6d0e0a9c5..3782be62081997 100644 --- a/src/app/CommandSender.cpp +++ b/src/app/CommandSender.cpp @@ -537,7 +537,8 @@ CHIP_ERROR CommandSender::FinishCommand(FinishCommandParameters & aFinishCommand return FinishCommandInternal(aFinishCommandParams); } -CHIP_ERROR CommandSender::AddRequestDataInternal(const CommandPathParams & aCommandPath, DataModel::EncodableToTLV & aEncodable, +CHIP_ERROR CommandSender::AddRequestDataInternal(const CommandPathParams & aCommandPath, + const DataModel::EncodableToTLV & aEncodable, AddRequestDataParameters & aAddRequestDataParams) { PrepareCommandParameters prepareCommandParams(aAddRequestDataParams); diff --git a/src/app/CommandSender.h b/src/app/CommandSender.h index e631ed2b84f849..862b1252208d88 100644 --- a/src/app/CommandSender.h +++ b/src/app/CommandSender.h @@ -390,7 +390,7 @@ class CommandSender final : public Messaging::ExchangeDelegate * invoke interaction. If the caller wants that certainty they should call the templated * version of AddRequestData. */ - CHIP_ERROR AddRequestData(const CommandPathParams & aCommandPath, DataModel::EncodableToTLV & aEncodable, + CHIP_ERROR AddRequestData(const CommandPathParams & aCommandPath, const DataModel::EncodableToTLV & aEncodable, AddRequestDataParameters & aAddRequestDataParams) { return AddRequestDataInternal(aCommandPath, aEncodable, aAddRequestDataParams); @@ -473,7 +473,8 @@ class CommandSender final : public Messaging::ExchangeDelegate #endif // CONFIG_BUILD_FOR_HOST_UNIT_TEST private: - CHIP_ERROR AddRequestDataInternal(const CommandPathParams & aCommandPath, DataModel::EncodableToTLV & aEncodable, + CHIP_ERROR AddRequestDataInternal(const CommandPathParams & aCommandPath, + const DataModel::EncodableToTLV & aEncodable, AddRequestDataParameters & aAddRequestDataParams); CHIP_ERROR FinishCommandInternal(FinishCommandParameters & aFinishCommandParams);