From 1401784bd0ff890e2d9b19d8ca843497f2002a06 Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Thu, 11 Nov 2021 15:43:06 -0500 Subject: [PATCH] Codegen a ResponseType for command cluster objects and use it to simplify templates (#11624) * Output a ResponseType for command Type structs. * Use ResponseType in our InvokeCommand templates. --- .../templates/partials/test_cluster.zapt | 9 +- .../common/ClusterTestGeneration.js | 15 - .../templates/app/CHIPClustersInvoke-src.zapt | 13 +- .../templates/app/cluster-objects.zapt | 24 + src/app/zap-templates/templates/app/helper.js | 10 + src/controller/CHIPCluster.h | 5 +- src/controller/InvokeInteraction.h | 20 +- .../tests/TestServerCommandDispatch.cpp | 20 +- .../tests/data_model/TestCommands.cpp | 14 +- .../zap-generated/cluster-objects.h | 2958 ++++++++++++++++- .../chip-tool/zap-generated/test/Commands.h | 1755 +++++----- .../zap-generated/CHIPClustersInvoke.cpp | 1039 +++--- .../zap-generated/CHIPClustersInvoke.cpp | 12 +- .../zap-generated/CHIPClustersInvoke.cpp | 33 +- .../zap-generated/CHIPClustersInvoke.cpp | 12 +- .../zap-generated/CHIPClustersInvoke.cpp | 78 +- .../zap-generated/CHIPClustersInvoke.cpp | 23 +- .../zap-generated/CHIPClustersInvoke.cpp | 99 +- 18 files changed, 4407 insertions(+), 1732 deletions(-) diff --git a/examples/chip-tool/templates/partials/test_cluster.zapt b/examples/chip-tool/templates/partials/test_cluster.zapt index 8142ce43892e20..336db62dfdadf4 100644 --- a/examples/chip-tool/templates/partials/test_cluster.zapt +++ b/examples/chip-tool/templates/partials/test_cluster.zapt @@ -141,22 +141,21 @@ class {{filename}}: public TestCommand cluster.Associate(mDevice, {{endpoint}}); {{#if isCommand}} - using requestType = chip::app::Clusters::{{asUpperCamelCase cluster}}::Commands::{{asUpperCamelCase command}}::Type; - using responseType = chip::app::{{chip_tests_item_response_type}}; + using RequestType = chip::app::Clusters::{{asUpperCamelCase cluster}}::Commands::{{asUpperCamelCase command}}::Type; - chip::app::Clusters::{{asUpperCamelCase cluster}}::Commands::{{asUpperCamelCase command}}::Type request; + RequestType request; {{#chip_tests_item_parameters}} {{>commandValue ns=parent.cluster container=(concat "request." (asLowerCamelCase label)) definedValue=definedValue}} {{/chip_tests_item_parameters}} - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast<{{filename}} *>(context))->OnSuccessResponse_{{index}}({{#chip_tests_item_response_parameters}}{{#not_first}}, {{/not_first}}data.{{asLowerCamelCase name}}{{/chip_tests_item_response_parameters}}); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast<{{filename}} *>(context))->OnFailureResponse_{{index}}(status); }; - {{#if async}}ReturnErrorOnFailure({{else}}return {{/if}}cluster.InvokeCommand(request, this, success, failure){{#if async}}){{/if}}; + {{#if async}}ReturnErrorOnFailure({{else}}return {{/if}}cluster.InvokeCommand(request, this, success, failure){{#if async}}){{/if}}; {{else}} {{#chip_tests_item_parameters}} {{zapTypeToEncodableClusterObjectType type ns=parent.cluster}} {{asLowerCamelCase name}}Argument; diff --git a/src/app/zap-templates/common/ClusterTestGeneration.js b/src/app/zap-templates/common/ClusterTestGeneration.js index f67e4c42ff4147..20cc6a768e7837 100644 --- a/src/app/zap-templates/common/ClusterTestGeneration.js +++ b/src/app/zap-templates/common/ClusterTestGeneration.js @@ -453,20 +453,6 @@ function isTestOnlyCluster(name) return testOnlyClusters.includes(name); } -function chip_tests_item_response_type(options) -{ - const promise = assertCommandOrAttribute(this).then(item => { - if (item.hasSpecificResponse) { - return 'Clusters::' + asUpperCamelCase(this.cluster) + '::Commands::' + asUpperCamelCase(item.response.name) - + '::DecodableType'; - } - - return 'DataModel::NullObjectType'; - }); - - return asPromise.call(this, promise, options); -} - // test_cluster_command_value and test_cluster_value-equals are recursive partials using #each. At some point the |global| // context is lost and it fails. Make sure to attach the global context as a property of the | value | // that is evaluated. @@ -602,7 +588,6 @@ function expectedValueHasProp(value, name) exports.chip_tests = chip_tests; exports.chip_tests_items = chip_tests_items; exports.chip_tests_item_parameters = chip_tests_item_parameters; -exports.chip_tests_item_response_type = chip_tests_item_response_type; exports.chip_tests_item_response_parameters = chip_tests_item_response_parameters; exports.chip_tests_pics = chip_tests_pics; exports.isTestOnlyCluster = isTestOnlyCluster; diff --git a/src/app/zap-templates/templates/app/CHIPClustersInvoke-src.zapt b/src/app/zap-templates/templates/app/CHIPClustersInvoke-src.zapt index dababb33e1b4a5..b8593cb5b920a9 100644 --- a/src/app/zap-templates/templates/app/CHIPClustersInvoke-src.zapt +++ b/src/app/zap-templates/templates/app/CHIPClustersInvoke-src.zapt @@ -18,18 +18,17 @@ namespace Controller { {{#chip_cluster_commands}} {{#*inline "requestType"}}chip::app::Clusters::{{asUpperCamelCase parent.name}}::Commands::{{asUpperCamelCase name}}::Type{{/inline}} -{{#*inline "responseType"}}chip::app::{{#if hasSpecificResponse}}Clusters::{{asUpperCamelCase parent.name}}::Commands::{{asUpperCamelCase response.name}}::DecodableType{{else}}DataModel::NullObjectType{{/if}}{{/inline}} -template CHIP_ERROR ClusterBase::InvokeCommand<{{>requestType}}, {{>responseType}}>(const {{>requestType}} &, void *, CommandResponseSuccessCallback<{{>responseType}}>, CommandResponseFailureCallback); +template CHIP_ERROR ClusterBase::InvokeCommand<{{>requestType}}>(const {{>requestType}} &, void *, CommandResponseSuccessCallbackrequestType}}::ResponseType>, CommandResponseFailureCallback); {{/chip_cluster_commands}} {{/chip_client_clusters}} -template +template CHIP_ERROR ClusterBase::InvokeCommand(const RequestDataT & requestData, void * context, - CommandResponseSuccessCallback successCb, CommandResponseFailureCallback failureCb) + CommandResponseSuccessCallback successCb, CommandResponseFailureCallback failureCb) { VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); - auto onSuccessCb = [context, successCb](const app::ConcreteCommandPath & commandPath, const app::StatusIB & aStatus, const ResponseDataT & responseData) { + auto onSuccessCb = [context, successCb](const app::ConcreteCommandPath & commandPath, const app::StatusIB & aStatus, const typename RequestDataT::ResponseType & responseData) { successCb(context, responseData); }; @@ -37,8 +36,8 @@ CHIP_ERROR ClusterBase::InvokeCommand(const RequestDataT & requestData, void * c failureCb(context, app::ToEmberAfStatus(aStatus.mStatus)); }; - return InvokeCommandRequest(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), mEndpoint, - requestData, onSuccessCb, onFailureCb); + return InvokeCommandRequest(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), mEndpoint, + requestData, onSuccessCb, onFailureCb); }; } // namespace Controller diff --git a/src/app/zap-templates/templates/app/cluster-objects.zapt b/src/app/zap-templates/templates/app/cluster-objects.zapt index a321db06d34c86..658ea3e37235ab 100644 --- a/src/app/zap-templates/templates/app/cluster-objects.zapt +++ b/src/app/zap-templates/templates/app/cluster-objects.zapt @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include @@ -87,6 +88,22 @@ namespace {{asUpperCamelCase name}} { {{/last}} {{/zcl_structs}} +{{#zcl_commands}} +{{#first}} +namespace Commands { + // Forward-declarations so we can reference these later. +{{/first}} + +namespace {{asUpperCamelCase name}} { + struct Type; + struct DecodableType; +} // namespace {{asUpperCamelCase name}} +{{#last}} + +} // namespace Commands +{{/last}} +{{/zcl_commands}} + {{#zcl_commands}} {{#first}} namespace Commands { @@ -110,6 +127,13 @@ public: {{/zcl_command_arguments}} CHIP_ERROR Encode(TLV::TLVWriter &writer, TLV::Tag tag) const; + + using ResponseType = + {{~#if responseRef}} + Clusters::{{asUpperCamelCase parent.name}}::Commands::{{getResponseCommandName responseRef}}::DecodableType; + {{else}} + DataModel::NullObjectType; + {{/if}} }; struct DecodableType { diff --git a/src/app/zap-templates/templates/app/helper.js b/src/app/zap-templates/templates/app/helper.js index a741b46ed6c434..c051d76c3c097f 100644 --- a/src/app/zap-templates/templates/app/helper.js +++ b/src/app/zap-templates/templates/app/helper.js @@ -19,6 +19,7 @@ const zapPath = '../../../../../third_party/zap/repo/dist/src-electron/'; const templateUtil = require(zapPath + 'generator/template-util.js') const zclHelper = require(zapPath + 'generator/helper-zcl.js') +const queryCommand = require(zapPath + 'db/query-command.js') const zclQuery = require(zapPath + 'db/query-zcl.js') const cHelper = require(zapPath + 'generator/helper-c.js') const string = require(zapPath + 'util/string.js') @@ -476,6 +477,14 @@ function zapTypeToPythonClusterObjectType(type, options) return templateUtil.templatePromise(this.global, promise) } +async function getResponseCommandName(responseRef, options) +{ + let pkgId = await templateUtil.ensureZclPackageId(this); + + const { db, sessionId } = this.global; + return queryCommand.selectCommandById(db, responseRef, pkgId).then(response => asUpperCamelCase(response.name)); +} + // // Module exports // @@ -491,3 +500,4 @@ exports.asMEI = asMEI; exports.zapTypeToEncodableClusterObjectType = zapTypeToEncodableClusterObjectType; exports.zapTypeToDecodableClusterObjectType = zapTypeToDecodableClusterObjectType; exports.zapTypeToPythonClusterObjectType = zapTypeToPythonClusterObjectType; +exports.getResponseCommandName = getResponseCommandName; diff --git a/src/controller/CHIPCluster.h b/src/controller/CHIPCluster.h index e254f1879caa71..18305be5759735 100644 --- a/src/controller/CHIPCluster.h +++ b/src/controller/CHIPCluster.h @@ -62,9 +62,10 @@ class DLL_EXPORT ClusterBase * Success and Failure callbacks must be passed in through which the decoded response is provided as well as notification of any * failure. */ - template + template CHIP_ERROR InvokeCommand(const RequestDataT & requestData, void * context, - CommandResponseSuccessCallback successCb, CommandResponseFailureCallback failureCb); + CommandResponseSuccessCallback successCb, + CommandResponseFailureCallback failureCb); /** * Functions for writing attributes. We have lots of different diff --git a/src/controller/InvokeInteraction.h b/src/controller/InvokeInteraction.h index 30d8d58e20d718..eb96f7c0445f09 100644 --- a/src/controller/InvokeInteraction.h +++ b/src/controller/InvokeInteraction.h @@ -30,21 +30,23 @@ namespace Controller { * the provided success callback or calls the provided failure callback. * * The RequestObjectT is generally expected to be a ClusterName::Commands::CommandName::Type struct, but any object - * that can be encoded using the DataModel::Encode machinery and exposes the GetClusterId() and GetCommandId() functions + * that can be encoded using the DataModel::Encode machinery and exposes the + * GetClusterId() and GetCommandId() functions and a ResponseType type * is expected to work. * - * The ResponseObjectT is expected to be one of two things: + * The ResponseType is expected to be one of two things: * * - If a data response is expected on success, a struct type decodable via DataModel::Decode which has GetClusterId() and * GetCommandId() methods. A ClusterName::Commands::ResponseCommandName::DecodableType is typically used. - * - If a status response is expected on success, a DataModel::NullObjectType. + * - If a status response is expected on success, DataModel::NullObjectType. * */ -template -CHIP_ERROR InvokeCommandRequest(Messaging::ExchangeManager * aExchangeMgr, SessionHandle sessionHandle, chip::EndpointId endpointId, - const RequestObjectT & requestCommandData, - typename TypedCommandCallback::OnSuccessCallbackType onSuccessCb, - typename TypedCommandCallback::OnErrorCallbackType onErrorCb) +template +CHIP_ERROR +InvokeCommandRequest(Messaging::ExchangeManager * aExchangeMgr, SessionHandle sessionHandle, chip::EndpointId endpointId, + const RequestObjectT & requestCommandData, + typename TypedCommandCallback::OnSuccessCallbackType onSuccessCb, + typename TypedCommandCallback::OnErrorCallbackType onErrorCb) { app::CommandPathParams commandPath = { endpointId, 0, RequestObjectT::GetClusterId(), RequestObjectT::GetCommandId(), (app::CommandPathFlags::kEndpointIdValid) }; @@ -52,7 +54,7 @@ CHIP_ERROR InvokeCommandRequest(Messaging::ExchangeManager * aExchangeMgr, Sessi // // Let's create a handle version of the decoder to ensure we do correct clean-up of it if things go south at any point below // - auto decoder = chip::Platform::MakeUnique>(onSuccessCb, onErrorCb); + auto decoder = chip::Platform::MakeUnique>(onSuccessCb, onErrorCb); VerifyOrReturnError(decoder != nullptr, CHIP_ERROR_NO_MEMORY); // diff --git a/src/controller/tests/TestServerCommandDispatch.cpp b/src/controller/tests/TestServerCommandDispatch.cpp index ae30c6fb73dbce..457037beb8ad99 100644 --- a/src/controller/tests/TestServerCommandDispatch.cpp +++ b/src/controller/tests/TestServerCommandDispatch.cpp @@ -114,10 +114,18 @@ class TestCommandInteraction private: }; +// We want to send a TestSimpleArgumentRequest::Type, but get a +// TestStructArrayArgumentResponse in return, so need to shadow the actual +// ResponseType that TestSimpleArgumentRequest has. +struct FakeRequest : public TestCluster::Commands::TestSimpleArgumentRequest::Type +{ + using ResponseType = TestCluster::Commands::TestStructArrayArgumentResponse::DecodableType; +}; + void TestCommandInteraction::TestNoHandler(nlTestSuite * apSuite, void * apContext) { TestContext & ctx = *static_cast(apContext); - TestCluster::Commands::TestSimpleArgumentRequest::Type request; + FakeRequest request; auto sessionHandle = ctx.GetSessionBobToAlice(); request.arg1 = true; @@ -142,8 +150,8 @@ void TestCommandInteraction::TestNoHandler(nlTestSuite * apSuite, void * apConte ctx.EnableAsyncDispatch(); - chip::Controller::InvokeCommandRequest( - &ctx.GetExchangeManager(), sessionHandle, kTestEndpointId, request, onSuccessCb, onFailureCb); + chip::Controller::InvokeCommandRequest(&ctx.GetExchangeManager(), sessionHandle, kTestEndpointId, request, onSuccessCb, + onFailureCb); ctx.DrainAndServiceIO(); @@ -176,7 +184,7 @@ DECLARE_DYNAMIC_ENDPOINT(testEndpoint, testEndpointClusters); void TestCommandInteraction::TestDataResponse(nlTestSuite * apSuite, void * apContext) { TestContext & ctx = *static_cast(apContext); - TestCluster::Commands::TestSimpleArgumentRequest::Type request; + FakeRequest request; auto sessionHandle = ctx.GetSessionBobToAlice(); TestClusterCommandHandler commandHandler; @@ -220,8 +228,8 @@ void TestCommandInteraction::TestDataResponse(nlTestSuite * apSuite, void * apCo responseDirective = kSendDataResponse; - chip::Controller::InvokeCommandRequest( - &ctx.GetExchangeManager(), sessionHandle, kTestEndpointId, request, onSuccessCb, onFailureCb); + chip::Controller::InvokeCommandRequest(&ctx.GetExchangeManager(), sessionHandle, kTestEndpointId, request, onSuccessCb, + onFailureCb); ctx.DrainAndServiceIO(); diff --git a/src/controller/tests/data_model/TestCommands.cpp b/src/controller/tests/data_model/TestCommands.cpp index a6f6ecf3f0eb7a..d390771df8f27c 100644 --- a/src/controller/tests/data_model/TestCommands.cpp +++ b/src/controller/tests/data_model/TestCommands.cpp @@ -159,7 +159,15 @@ class TestCommandInteraction void TestCommandInteraction::TestDataResponse(nlTestSuite * apSuite, void * apContext) { TestContext & ctx = *static_cast(apContext); - TestCluster::Commands::TestSimpleArgumentRequest::Type request; + // We want to send a TestSimpleArgumentRequest::Type, but get a + // TestStructArrayArgumentResponse in return, so need to shadow the actual + // ResponseType that TestSimpleArgumentRequest has. + struct FakeRequest : public TestCluster::Commands::TestSimpleArgumentRequest::Type + { + using ResponseType = TestCluster::Commands::TestStructArrayArgumentResponse::DecodableType; + }; + + FakeRequest request; auto sessionHandle = ctx.GetSessionBobToAlice(); bool onSuccessWasCalled = false; @@ -196,8 +204,8 @@ void TestCommandInteraction::TestDataResponse(nlTestSuite * apSuite, void * apCo responseDirective = kSendDataResponse; - chip::Controller::InvokeCommandRequest( - &ctx.GetExchangeManager(), sessionHandle, kTestEndpointId, request, onSuccessCb, onFailureCb); + chip::Controller::InvokeCommandRequest(&ctx.GetExchangeManager(), sessionHandle, kTestEndpointId, request, onSuccessCb, + onFailureCb); ctx.DrainAndServiceIO(); diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h index 411fcc4f32e0de..980f6fc681a9e5 100644 --- a/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h +++ b/zzz_generated/app-common/app-common/zap-generated/cluster-objects.h @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include @@ -861,6 +862,31 @@ enum class IdentifyIdentifyType : uint8_t using IdentifyIdentifyType = EmberAfIdentifyIdentifyType; #endif +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace Identify { +struct Type; +struct DecodableType; +} // namespace Identify + +namespace IdentifyQueryResponse { +struct Type; +struct DecodableType; +} // namespace IdentifyQueryResponse + +namespace IdentifyQuery { +struct Type; +struct DecodableType; +} // namespace IdentifyQuery + +namespace TriggerEffect { +struct Type; +struct DecodableType; +} // namespace TriggerEffect + +} // namespace Commands + namespace Commands { namespace Identify { enum class Fields @@ -878,6 +904,8 @@ struct Type uint16_t identifyTime; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -906,6 +934,8 @@ struct Type uint16_t timeout; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -931,6 +961,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::Identify::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::Identify::Commands::IdentifyQueryResponse::DecodableType; }; struct DecodableType @@ -960,6 +992,8 @@ struct Type IdentifyEffectVariant effectVariant; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -1024,6 +1058,61 @@ struct TypeInfo } // namespace Identify namespace Groups { +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace AddGroup { +struct Type; +struct DecodableType; +} // namespace AddGroup + +namespace AddGroupResponse { +struct Type; +struct DecodableType; +} // namespace AddGroupResponse + +namespace ViewGroup { +struct Type; +struct DecodableType; +} // namespace ViewGroup + +namespace ViewGroupResponse { +struct Type; +struct DecodableType; +} // namespace ViewGroupResponse + +namespace GetGroupMembership { +struct Type; +struct DecodableType; +} // namespace GetGroupMembership + +namespace GetGroupMembershipResponse { +struct Type; +struct DecodableType; +} // namespace GetGroupMembershipResponse + +namespace RemoveGroup { +struct Type; +struct DecodableType; +} // namespace RemoveGroup + +namespace RemoveGroupResponse { +struct Type; +struct DecodableType; +} // namespace RemoveGroupResponse + +namespace RemoveAllGroups { +struct Type; +struct DecodableType; +} // namespace RemoveAllGroups + +namespace AddGroupIfIdentifying { +struct Type; +struct DecodableType; +} // namespace AddGroupIfIdentifying + +} // namespace Commands + namespace Commands { namespace AddGroup { enum class Fields @@ -1043,6 +1132,8 @@ struct Type chip::CharSpan groupName; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::Groups::Commands::AddGroupResponse::DecodableType; }; struct DecodableType @@ -1074,6 +1165,8 @@ struct Type uint16_t groupId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -1103,6 +1196,8 @@ struct Type uint16_t groupId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::Groups::Commands::ViewGroupResponse::DecodableType; }; struct DecodableType @@ -1135,6 +1230,8 @@ struct Type chip::CharSpan groupName; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -1167,6 +1264,8 @@ struct Type DataModel::List groupList; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::Groups::Commands::GetGroupMembershipResponse::DecodableType; }; struct DecodableType @@ -1200,6 +1299,8 @@ struct Type DataModel::List groupList; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -1230,6 +1331,8 @@ struct Type uint16_t groupId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::Groups::Commands::RemoveGroupResponse::DecodableType; }; struct DecodableType @@ -1260,6 +1363,8 @@ struct Type uint16_t groupId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -1286,6 +1391,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::Groups::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -1315,6 +1422,8 @@ struct Type chip::CharSpan groupName; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -1399,6 +1508,106 @@ using DecodableType = Type; } // namespace SceneExtensionFieldSet } // namespace Structs +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace AddScene { +struct Type; +struct DecodableType; +} // namespace AddScene + +namespace AddSceneResponse { +struct Type; +struct DecodableType; +} // namespace AddSceneResponse + +namespace ViewScene { +struct Type; +struct DecodableType; +} // namespace ViewScene + +namespace ViewSceneResponse { +struct Type; +struct DecodableType; +} // namespace ViewSceneResponse + +namespace RemoveScene { +struct Type; +struct DecodableType; +} // namespace RemoveScene + +namespace RemoveSceneResponse { +struct Type; +struct DecodableType; +} // namespace RemoveSceneResponse + +namespace RemoveAllScenes { +struct Type; +struct DecodableType; +} // namespace RemoveAllScenes + +namespace RemoveAllScenesResponse { +struct Type; +struct DecodableType; +} // namespace RemoveAllScenesResponse + +namespace StoreScene { +struct Type; +struct DecodableType; +} // namespace StoreScene + +namespace StoreSceneResponse { +struct Type; +struct DecodableType; +} // namespace StoreSceneResponse + +namespace RecallScene { +struct Type; +struct DecodableType; +} // namespace RecallScene + +namespace GetSceneMembership { +struct Type; +struct DecodableType; +} // namespace GetSceneMembership + +namespace GetSceneMembershipResponse { +struct Type; +struct DecodableType; +} // namespace GetSceneMembershipResponse + +namespace EnhancedAddScene { +struct Type; +struct DecodableType; +} // namespace EnhancedAddScene + +namespace EnhancedAddSceneResponse { +struct Type; +struct DecodableType; +} // namespace EnhancedAddSceneResponse + +namespace EnhancedViewScene { +struct Type; +struct DecodableType; +} // namespace EnhancedViewScene + +namespace EnhancedViewSceneResponse { +struct Type; +struct DecodableType; +} // namespace EnhancedViewSceneResponse + +namespace CopyScene { +struct Type; +struct DecodableType; +} // namespace CopyScene + +namespace CopySceneResponse { +struct Type; +struct DecodableType; +} // namespace CopySceneResponse + +} // namespace Commands + namespace Commands { namespace AddScene { enum class Fields @@ -1424,6 +1633,8 @@ struct Type DataModel::List extensionFieldSets; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::Scenes::Commands::AddSceneResponse::DecodableType; }; struct DecodableType @@ -1460,6 +1671,8 @@ struct Type uint8_t sceneId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -1492,6 +1705,8 @@ struct Type uint8_t sceneId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::Scenes::Commands::ViewSceneResponse::DecodableType; }; struct DecodableType @@ -1531,6 +1746,8 @@ struct Type DataModel::List extensionFieldSets; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -1566,6 +1783,8 @@ struct Type uint8_t sceneId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::Scenes::Commands::RemoveSceneResponse::DecodableType; }; struct DecodableType @@ -1599,6 +1818,8 @@ struct Type uint8_t sceneId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -1629,6 +1850,8 @@ struct Type uint16_t groupId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::Scenes::Commands::RemoveAllScenesResponse::DecodableType; }; struct DecodableType @@ -1659,6 +1882,8 @@ struct Type uint16_t groupId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -1690,6 +1915,8 @@ struct Type uint8_t sceneId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::Scenes::Commands::StoreSceneResponse::DecodableType; }; struct DecodableType @@ -1723,6 +1950,8 @@ struct Type uint8_t sceneId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -1757,6 +1986,8 @@ struct Type uint16_t transitionTime; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -1787,6 +2018,8 @@ struct Type uint16_t groupId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::Scenes::Commands::GetSceneMembershipResponse::DecodableType; }; struct DecodableType @@ -1823,6 +2056,8 @@ struct Type DataModel::List sceneList; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -1863,6 +2098,8 @@ struct Type DataModel::List extensionFieldSets; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::Scenes::Commands::EnhancedAddSceneResponse::DecodableType; }; struct DecodableType @@ -1899,6 +2136,8 @@ struct Type uint8_t sceneId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -1931,6 +2170,8 @@ struct Type uint8_t sceneId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::Scenes::Commands::EnhancedViewSceneResponse::DecodableType; }; struct DecodableType @@ -1970,6 +2211,8 @@ struct Type DataModel::List extensionFieldSets; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -2011,6 +2254,8 @@ struct Type uint8_t sceneIdTo; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::Scenes::Commands::CopySceneResponse::DecodableType; }; struct DecodableType @@ -2047,6 +2292,8 @@ struct Type uint8_t sceneIdFrom; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -2198,6 +2445,66 @@ enum class OnOffControl : uint8_t kAcceptOnlyWhenOn = 0, }; +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace Off { +struct Type; +struct DecodableType; +} // namespace Off + +namespace SampleMfgSpecificOffWithTransition { +struct Type; +struct DecodableType; +} // namespace SampleMfgSpecificOffWithTransition + +namespace On { +struct Type; +struct DecodableType; +} // namespace On + +namespace SampleMfgSpecificOnWithTransition { +struct Type; +struct DecodableType; +} // namespace SampleMfgSpecificOnWithTransition + +namespace SampleMfgSpecificOnWithTransition2 { +struct Type; +struct DecodableType; +} // namespace SampleMfgSpecificOnWithTransition2 + +namespace Toggle { +struct Type; +struct DecodableType; +} // namespace Toggle + +namespace SampleMfgSpecificToggleWithTransition { +struct Type; +struct DecodableType; +} // namespace SampleMfgSpecificToggleWithTransition + +namespace SampleMfgSpecificToggleWithTransition2 { +struct Type; +struct DecodableType; +} // namespace SampleMfgSpecificToggleWithTransition2 + +namespace OffWithEffect { +struct Type; +struct DecodableType; +} // namespace OffWithEffect + +namespace OnWithRecallGlobalScene { +struct Type; +struct DecodableType; +} // namespace OnWithRecallGlobalScene + +namespace OnWithTimedOff { +struct Type; +struct DecodableType; +} // namespace OnWithTimedOff + +} // namespace Commands + namespace Commands { namespace Off { enum class Fields @@ -2212,6 +2519,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::OnOff::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -2236,6 +2545,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::OnOff::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -2260,6 +2571,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::OnOff::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -2284,6 +2597,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::OnOff::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -2308,6 +2623,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::OnOff::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -2332,6 +2649,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::OnOff::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -2356,6 +2675,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::OnOff::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -2380,6 +2701,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::OnOff::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -2409,6 +2732,8 @@ struct Type OnOffDelayedAllOffEffectVariant effectVariant; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -2435,6 +2760,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::OnOff::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -2466,6 +2793,8 @@ struct Type uint16_t offWaitTime; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -2681,6 +3010,51 @@ enum class StepMode : uint8_t using StepMode = EmberAfStepMode; #endif +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace MoveToLevel { +struct Type; +struct DecodableType; +} // namespace MoveToLevel + +namespace Move { +struct Type; +struct DecodableType; +} // namespace Move + +namespace Step { +struct Type; +struct DecodableType; +} // namespace Step + +namespace Stop { +struct Type; +struct DecodableType; +} // namespace Stop + +namespace MoveToLevelWithOnOff { +struct Type; +struct DecodableType; +} // namespace MoveToLevelWithOnOff + +namespace MoveWithOnOff { +struct Type; +struct DecodableType; +} // namespace MoveWithOnOff + +namespace StepWithOnOff { +struct Type; +struct DecodableType; +} // namespace StepWithOnOff + +namespace StopWithOnOff { +struct Type; +struct DecodableType; +} // namespace StopWithOnOff + +} // namespace Commands + namespace Commands { namespace MoveToLevel { enum class Fields @@ -2704,6 +3078,8 @@ struct Type uint8_t optionOverride; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -2741,6 +3117,8 @@ struct Type uint8_t optionOverride; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -2780,6 +3158,8 @@ struct Type uint8_t optionOverride; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -2814,6 +3194,8 @@ struct Type uint8_t optionOverride; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -2845,6 +3227,8 @@ struct Type uint16_t transitionTime; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -2876,6 +3260,8 @@ struct Type uint8_t rate; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -2909,6 +3295,8 @@ struct Type uint16_t transitionTime; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -2936,6 +3324,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::LevelControl::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -3130,6 +3520,41 @@ struct TypeInfo } // namespace LevelControl namespace Alarms { +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace ResetAlarm { +struct Type; +struct DecodableType; +} // namespace ResetAlarm + +namespace Alarm { +struct Type; +struct DecodableType; +} // namespace Alarm + +namespace ResetAllAlarms { +struct Type; +struct DecodableType; +} // namespace ResetAllAlarms + +namespace GetAlarmResponse { +struct Type; +struct DecodableType; +} // namespace GetAlarmResponse + +namespace GetAlarm { +struct Type; +struct DecodableType; +} // namespace GetAlarm + +namespace ResetAlarmLog { +struct Type; +struct DecodableType; +} // namespace ResetAlarmLog + +} // namespace Commands + namespace Commands { namespace ResetAlarm { enum class Fields @@ -3149,6 +3574,8 @@ struct Type chip::ClusterId clusterId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -3180,6 +3607,8 @@ struct Type chip::ClusterId clusterId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -3206,6 +3635,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::Alarms::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -3239,6 +3670,8 @@ struct Type uint32_t timeStamp; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -3267,6 +3700,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::Alarms::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::Alarms::Commands::GetAlarmResponse::DecodableType; }; struct DecodableType @@ -3291,6 +3726,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::Alarms::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -3680,6 +4117,116 @@ using DecodableType = Type; } // namespace TransferredPhase } // namespace Structs +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace PowerProfileRequest { +struct Type; +struct DecodableType; +} // namespace PowerProfileRequest + +namespace PowerProfileNotification { +struct Type; +struct DecodableType; +} // namespace PowerProfileNotification + +namespace PowerProfileStateRequest { +struct Type; +struct DecodableType; +} // namespace PowerProfileStateRequest + +namespace PowerProfileResponse { +struct Type; +struct DecodableType; +} // namespace PowerProfileResponse + +namespace GetPowerProfilePriceResponse { +struct Type; +struct DecodableType; +} // namespace GetPowerProfilePriceResponse + +namespace PowerProfileStateResponse { +struct Type; +struct DecodableType; +} // namespace PowerProfileStateResponse + +namespace GetOverallSchedulePriceResponse { +struct Type; +struct DecodableType; +} // namespace GetOverallSchedulePriceResponse + +namespace GetPowerProfilePrice { +struct Type; +struct DecodableType; +} // namespace GetPowerProfilePrice + +namespace EnergyPhasesScheduleNotification { +struct Type; +struct DecodableType; +} // namespace EnergyPhasesScheduleNotification + +namespace PowerProfilesStateNotification { +struct Type; +struct DecodableType; +} // namespace PowerProfilesStateNotification + +namespace EnergyPhasesScheduleResponse { +struct Type; +struct DecodableType; +} // namespace EnergyPhasesScheduleResponse + +namespace GetOverallSchedulePrice { +struct Type; +struct DecodableType; +} // namespace GetOverallSchedulePrice + +namespace PowerProfileScheduleConstraintsRequest { +struct Type; +struct DecodableType; +} // namespace PowerProfileScheduleConstraintsRequest + +namespace EnergyPhasesScheduleRequest { +struct Type; +struct DecodableType; +} // namespace EnergyPhasesScheduleRequest + +namespace EnergyPhasesScheduleStateRequest { +struct Type; +struct DecodableType; +} // namespace EnergyPhasesScheduleStateRequest + +namespace EnergyPhasesScheduleStateResponse { +struct Type; +struct DecodableType; +} // namespace EnergyPhasesScheduleStateResponse + +namespace GetPowerProfilePriceExtendedResponse { +struct Type; +struct DecodableType; +} // namespace GetPowerProfilePriceExtendedResponse + +namespace EnergyPhasesScheduleStateNotification { +struct Type; +struct DecodableType; +} // namespace EnergyPhasesScheduleStateNotification + +namespace PowerProfileScheduleConstraintsNotification { +struct Type; +struct DecodableType; +} // namespace PowerProfileScheduleConstraintsNotification + +namespace PowerProfileScheduleConstraintsResponse { +struct Type; +struct DecodableType; +} // namespace PowerProfileScheduleConstraintsResponse + +namespace GetPowerProfilePriceExtended { +struct Type; +struct DecodableType; +} // namespace GetPowerProfilePriceExtended + +} // namespace Commands + namespace Commands { namespace PowerProfileRequest { enum class Fields @@ -3697,6 +4244,8 @@ struct Type uint8_t powerProfileId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::PowerProfile::Commands::PowerProfileResponse::DecodableType; }; struct DecodableType @@ -3731,6 +4280,8 @@ struct Type DataModel::List transferredPhases; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -3759,6 +4310,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::PowerProfile::Commands::PowerProfileStateResponse::DecodableType; }; struct DecodableType @@ -3792,6 +4345,8 @@ struct Type DataModel::List transferredPhases; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -3829,6 +4384,8 @@ struct Type uint8_t priceTrailingDigit; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -3862,6 +4419,8 @@ struct Type DataModel::List powerProfileRecords; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -3895,6 +4454,8 @@ struct Type uint8_t priceTrailingDigit; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -3925,6 +4486,8 @@ struct Type uint8_t powerProfileId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::PowerProfile::Commands::GetPowerProfilePriceResponse::DecodableType; }; struct DecodableType @@ -3957,6 +4520,8 @@ struct Type DataModel::List scheduledPhases; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -3989,6 +4554,8 @@ struct Type DataModel::List powerProfileRecords; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -4022,6 +4589,8 @@ struct Type DataModel::List scheduledPhases; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -4049,6 +4618,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::PowerProfile::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::PowerProfile::Commands::GetOverallSchedulePriceResponse::DecodableType; }; struct DecodableType @@ -4076,6 +4647,8 @@ struct Type uint8_t powerProfileId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::PowerProfile::Commands::PowerProfileScheduleConstraintsResponse::DecodableType; }; struct DecodableType @@ -4104,6 +4677,8 @@ struct Type uint8_t powerProfileId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::PowerProfile::Commands::EnergyPhasesScheduleResponse::DecodableType; }; struct DecodableType @@ -4132,6 +4707,8 @@ struct Type uint8_t powerProfileId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::PowerProfile::Commands::EnergyPhasesScheduleStateResponse::DecodableType; }; struct DecodableType @@ -4164,6 +4741,8 @@ struct Type DataModel::List scheduledPhases; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -4200,6 +4779,8 @@ struct Type uint8_t priceTrailingDigit; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -4235,6 +4816,8 @@ struct Type DataModel::List scheduledPhases; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -4269,6 +4852,8 @@ struct Type uint16_t stopBefore; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -4303,6 +4888,8 @@ struct Type uint16_t stopBefore; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -4337,6 +4924,8 @@ struct Type uint16_t powerProfileStartTime; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::PowerProfile::Commands::GetPowerProfilePriceExtendedResponse::DecodableType; }; struct DecodableType @@ -4503,6 +5092,51 @@ enum class RemoteEnableFlagsAndDeviceStatus2 : uint8_t kDeviceStatus2Structure = 4, }; +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace ExecutionOfACommand { +struct Type; +struct DecodableType; +} // namespace ExecutionOfACommand + +namespace SignalStateResponse { +struct Type; +struct DecodableType; +} // namespace SignalStateResponse + +namespace SignalState { +struct Type; +struct DecodableType; +} // namespace SignalState + +namespace SignalStateNotification { +struct Type; +struct DecodableType; +} // namespace SignalStateNotification + +namespace WriteFunctions { +struct Type; +struct DecodableType; +} // namespace WriteFunctions + +namespace OverloadPauseResume { +struct Type; +struct DecodableType; +} // namespace OverloadPauseResume + +namespace OverloadPause { +struct Type; +struct DecodableType; +} // namespace OverloadPause + +namespace OverloadWarning { +struct Type; +struct DecodableType; +} // namespace OverloadWarning + +} // namespace Commands + namespace Commands { namespace ExecutionOfACommand { enum class Fields @@ -4520,6 +5154,8 @@ struct Type CommandIdentification commandId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -4552,6 +5188,8 @@ struct Type ApplianceStatus applianceStatus2; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -4579,6 +5217,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::ApplianceControl::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::ApplianceControl::Commands::SignalStateResponse::DecodableType; }; struct DecodableType @@ -4610,6 +5250,8 @@ struct Type ApplianceStatus applianceStatus2; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -4644,6 +5286,8 @@ struct Type DataModel::List functionData; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -4671,6 +5315,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::ApplianceControl::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -4695,6 +5341,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::ApplianceControl::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -4722,6 +5370,8 @@ struct Type WarningEvent warningEvent; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -4890,6 +5540,36 @@ struct TypeInfo } // namespace Descriptor namespace PollControl { +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace CheckIn { +struct Type; +struct DecodableType; +} // namespace CheckIn + +namespace CheckInResponse { +struct Type; +struct DecodableType; +} // namespace CheckInResponse + +namespace FastPollStop { +struct Type; +struct DecodableType; +} // namespace FastPollStop + +namespace SetLongPollInterval { +struct Type; +struct DecodableType; +} // namespace SetLongPollInterval + +namespace SetShortPollInterval { +struct Type; +struct DecodableType; +} // namespace SetShortPollInterval + +} // namespace Commands + namespace Commands { namespace CheckIn { enum class Fields @@ -4904,6 +5584,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::PollControl::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::PollControl::Commands::CheckInResponse::DecodableType; }; struct DecodableType @@ -4933,6 +5615,8 @@ struct Type uint16_t fastPollTimeout; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -4959,6 +5643,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::PollControl::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -4986,6 +5672,8 @@ struct Type uint32_t newLongPollInterval; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -5014,6 +5702,8 @@ struct Type uint16_t newShortPollInterval; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -5260,6 +5950,71 @@ using DecodableType = Type; } // namespace EndpointListStruct } // namespace Structs +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace InstantAction { +struct Type; +struct DecodableType; +} // namespace InstantAction + +namespace InstantActionWithTransition { +struct Type; +struct DecodableType; +} // namespace InstantActionWithTransition + +namespace StartAction { +struct Type; +struct DecodableType; +} // namespace StartAction + +namespace StartActionWithDuration { +struct Type; +struct DecodableType; +} // namespace StartActionWithDuration + +namespace StopAction { +struct Type; +struct DecodableType; +} // namespace StopAction + +namespace PauseAction { +struct Type; +struct DecodableType; +} // namespace PauseAction + +namespace PauseActionWithDuration { +struct Type; +struct DecodableType; +} // namespace PauseActionWithDuration + +namespace ResumeAction { +struct Type; +struct DecodableType; +} // namespace ResumeAction + +namespace EnableAction { +struct Type; +struct DecodableType; +} // namespace EnableAction + +namespace EnableActionWithDuration { +struct Type; +struct DecodableType; +} // namespace EnableActionWithDuration + +namespace DisableAction { +struct Type; +struct DecodableType; +} // namespace DisableAction + +namespace DisableActionWithDuration { +struct Type; +struct DecodableType; +} // namespace DisableActionWithDuration + +} // namespace Commands + namespace Commands { namespace InstantAction { enum class Fields @@ -5279,6 +6034,8 @@ struct Type Optional invokeID; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -5312,6 +6069,8 @@ struct Type uint16_t transitionTime; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -5344,6 +6103,8 @@ struct Type Optional invokeID; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -5377,6 +6138,8 @@ struct Type uint32_t duration; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -5409,6 +6172,8 @@ struct Type Optional invokeID; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -5440,6 +6205,8 @@ struct Type Optional invokeID; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -5473,6 +6240,8 @@ struct Type uint32_t duration; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -5505,6 +6274,8 @@ struct Type Optional invokeID; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -5536,6 +6307,8 @@ struct Type Optional invokeID; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -5569,6 +6342,8 @@ struct Type uint32_t duration; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -5601,6 +6376,8 @@ struct Type Optional invokeID; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -5634,6 +6411,8 @@ struct Type uint32_t duration; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -5710,6 +6489,31 @@ struct TypeInfo } // namespace BridgedActions namespace Basic { +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace StartUp { +struct Type; +struct DecodableType; +} // namespace StartUp + +namespace MfgSpecificPing { +struct Type; +struct DecodableType; +} // namespace MfgSpecificPing + +namespace ShutDown { +struct Type; +struct DecodableType; +} // namespace ShutDown + +namespace Leave { +struct Type; +struct DecodableType; +} // namespace Leave + +} // namespace Commands + namespace Commands { namespace StartUp { enum class Fields @@ -5724,6 +6528,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::Basic::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -5748,6 +6554,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::Basic::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -5772,6 +6580,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::Basic::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -5796,6 +6606,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::Basic::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -6074,6 +6886,36 @@ enum class OTAQueryStatus : uint8_t using OTAQueryStatus = EmberAfOTAQueryStatus; #endif +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace QueryImage { +struct Type; +struct DecodableType; +} // namespace QueryImage + +namespace ApplyUpdateRequest { +struct Type; +struct DecodableType; +} // namespace ApplyUpdateRequest + +namespace NotifyUpdateApplied { +struct Type; +struct DecodableType; +} // namespace NotifyUpdateApplied + +namespace QueryImageResponse { +struct Type; +struct DecodableType; +} // namespace QueryImageResponse + +namespace ApplyUpdateResponse { +struct Type; +struct DecodableType; +} // namespace ApplyUpdateResponse + +} // namespace Commands + namespace Commands { namespace QueryImage { enum class Fields @@ -6105,6 +6947,8 @@ struct Type Optional metadataForProvider; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::OtaSoftwareUpdateProvider::Commands::QueryImageResponse::DecodableType; }; struct DecodableType @@ -6142,6 +6986,8 @@ struct Type uint32_t newVersion; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::OtaSoftwareUpdateProvider::Commands::ApplyUpdateResponse::DecodableType; }; struct DecodableType @@ -6173,6 +7019,8 @@ struct Type uint32_t softwareVersion; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -6216,6 +7064,8 @@ struct Type Optional metadataForRequestor; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -6253,6 +7103,8 @@ struct Type uint32_t delayedActionTime; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -6308,6 +7160,16 @@ enum class OTAAnnouncementReason : uint8_t using OTAAnnouncementReason = EmberAfOTAAnnouncementReason; #endif +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace AnnounceOtaProvider { +struct Type; +struct DecodableType; +} // namespace AnnounceOtaProvider + +} // namespace Commands + namespace Commands { namespace AnnounceOtaProvider { enum class Fields @@ -6331,6 +7193,8 @@ struct Type Optional metadataForNode; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -6812,6 +7676,41 @@ using DecodableType = Type; } // namespace BasicCommissioningInfoType } // namespace Structs +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace ArmFailSafe { +struct Type; +struct DecodableType; +} // namespace ArmFailSafe + +namespace ArmFailSafeResponse { +struct Type; +struct DecodableType; +} // namespace ArmFailSafeResponse + +namespace SetRegulatoryConfig { +struct Type; +struct DecodableType; +} // namespace SetRegulatoryConfig + +namespace SetRegulatoryConfigResponse { +struct Type; +struct DecodableType; +} // namespace SetRegulatoryConfigResponse + +namespace CommissioningComplete { +struct Type; +struct DecodableType; +} // namespace CommissioningComplete + +namespace CommissioningCompleteResponse { +struct Type; +struct DecodableType; +} // namespace CommissioningCompleteResponse + +} // namespace Commands + namespace Commands { namespace ArmFailSafe { enum class Fields @@ -6833,6 +7732,8 @@ struct Type uint32_t timeoutMs; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::GeneralCommissioning::Commands::ArmFailSafeResponse::DecodableType; }; struct DecodableType @@ -6865,6 +7766,8 @@ struct Type chip::CharSpan debugText; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -6900,6 +7803,8 @@ struct Type uint32_t timeoutMs; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::GeneralCommissioning::Commands::SetRegulatoryConfigResponse::DecodableType; }; struct DecodableType @@ -6933,6 +7838,8 @@ struct Type chip::CharSpan debugText; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -6959,6 +7866,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::GeneralCommissioning::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::GeneralCommissioning::Commands::CommissioningCompleteResponse::DecodableType; }; struct DecodableType @@ -6988,6 +7897,8 @@ struct Type chip::CharSpan debugText; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -7151,6 +8062,91 @@ using DecodableType = Type; } // namespace WiFiInterfaceScanResult } // namespace Structs +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace ScanNetworks { +struct Type; +struct DecodableType; +} // namespace ScanNetworks + +namespace ScanNetworksResponse { +struct Type; +struct DecodableType; +} // namespace ScanNetworksResponse + +namespace AddWiFiNetwork { +struct Type; +struct DecodableType; +} // namespace AddWiFiNetwork + +namespace AddWiFiNetworkResponse { +struct Type; +struct DecodableType; +} // namespace AddWiFiNetworkResponse + +namespace UpdateWiFiNetwork { +struct Type; +struct DecodableType; +} // namespace UpdateWiFiNetwork + +namespace UpdateWiFiNetworkResponse { +struct Type; +struct DecodableType; +} // namespace UpdateWiFiNetworkResponse + +namespace AddThreadNetwork { +struct Type; +struct DecodableType; +} // namespace AddThreadNetwork + +namespace AddThreadNetworkResponse { +struct Type; +struct DecodableType; +} // namespace AddThreadNetworkResponse + +namespace UpdateThreadNetwork { +struct Type; +struct DecodableType; +} // namespace UpdateThreadNetwork + +namespace UpdateThreadNetworkResponse { +struct Type; +struct DecodableType; +} // namespace UpdateThreadNetworkResponse + +namespace RemoveNetwork { +struct Type; +struct DecodableType; +} // namespace RemoveNetwork + +namespace RemoveNetworkResponse { +struct Type; +struct DecodableType; +} // namespace RemoveNetworkResponse + +namespace EnableNetwork { +struct Type; +struct DecodableType; +} // namespace EnableNetwork + +namespace EnableNetworkResponse { +struct Type; +struct DecodableType; +} // namespace EnableNetworkResponse + +namespace DisableNetwork { +struct Type; +struct DecodableType; +} // namespace DisableNetwork + +namespace DisableNetworkResponse { +struct Type; +struct DecodableType; +} // namespace DisableNetworkResponse + +} // namespace Commands + namespace Commands { namespace ScanNetworks { enum class Fields @@ -7172,6 +8168,8 @@ struct Type uint32_t timeoutMs; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::NetworkCommissioning::Commands::ScanNetworksResponse::DecodableType; }; struct DecodableType @@ -7208,6 +8206,8 @@ struct Type DataModel::List threadScanResults; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -7245,6 +8245,8 @@ struct Type uint32_t timeoutMs; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::NetworkCommissioning::Commands::AddWiFiNetworkResponse::DecodableType; }; struct DecodableType @@ -7278,6 +8280,8 @@ struct Type chip::CharSpan debugText; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -7313,6 +8317,8 @@ struct Type uint32_t timeoutMs; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::NetworkCommissioning::Commands::UpdateWiFiNetworkResponse::DecodableType; }; struct DecodableType @@ -7346,6 +8352,8 @@ struct Type chip::CharSpan debugText; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -7379,6 +8387,8 @@ struct Type uint32_t timeoutMs; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::NetworkCommissioning::Commands::AddThreadNetworkResponse::DecodableType; }; struct DecodableType @@ -7411,6 +8421,8 @@ struct Type chip::CharSpan debugText; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -7444,6 +8456,8 @@ struct Type uint32_t timeoutMs; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::NetworkCommissioning::Commands::UpdateThreadNetworkResponse::DecodableType; }; struct DecodableType @@ -7476,6 +8490,8 @@ struct Type chip::CharSpan debugText; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -7509,6 +8525,8 @@ struct Type uint32_t timeoutMs; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::NetworkCommissioning::Commands::RemoveNetworkResponse::DecodableType; }; struct DecodableType @@ -7541,6 +8559,8 @@ struct Type chip::CharSpan debugText; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -7574,6 +8594,8 @@ struct Type uint32_t timeoutMs; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::NetworkCommissioning::Commands::EnableNetworkResponse::DecodableType; }; struct DecodableType @@ -7606,6 +8628,8 @@ struct Type chip::CharSpan debugText; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -7639,6 +8663,8 @@ struct Type uint32_t timeoutMs; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::NetworkCommissioning::Commands::DisableNetworkResponse::DecodableType; }; struct DecodableType @@ -7671,6 +8697,8 @@ struct Type chip::CharSpan debugText; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -7753,6 +8781,21 @@ enum class LogsTransferProtocol : uint8_t using LogsTransferProtocol = EmberAfLogsTransferProtocol; #endif +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace RetrieveLogsRequest { +struct Type; +struct DecodableType; +} // namespace RetrieveLogsRequest + +namespace RetrieveLogsResponse { +struct Type; +struct DecodableType; +} // namespace RetrieveLogsResponse + +} // namespace Commands + namespace Commands { namespace RetrieveLogsRequest { enum class Fields @@ -7774,6 +8817,8 @@ struct Type chip::ByteSpan transferFileDesignator; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::DiagnosticLogs::Commands::RetrieveLogsResponse::DecodableType; }; struct DecodableType @@ -7810,6 +8855,8 @@ struct Type uint32_t timeSinceBoot; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -8113,6 +9160,16 @@ using DecodableType = Type; } // namespace ThreadMetrics } // namespace Structs +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace ResetWatermarks { +struct Type; +struct DecodableType; +} // namespace ResetWatermarks + +} // namespace Commands + namespace Commands { namespace ResetWatermarks { enum class Fields @@ -8127,6 +9184,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::SoftwareDiagnostics::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -8385,6 +9444,16 @@ using DecodableType = Type; } // namespace SecurityPolicy } // namespace Structs +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace ResetCounts { +struct Type; +struct DecodableType; +} // namespace ResetCounts + +} // namespace Commands + namespace Commands { namespace ResetCounts { enum class Fields @@ -8399,6 +9468,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::ThreadNetworkDiagnostics::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -9164,6 +10235,16 @@ enum class WiFiVersionType : uint8_t using WiFiVersionType = EmberAfWiFiVersionType; #endif +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace ResetCounts { +struct Type; +struct DecodableType; +} // namespace ResetCounts + +} // namespace Commands + namespace Commands { namespace ResetCounts { enum class Fields @@ -9178,6 +10259,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::WiFiNetworkDiagnostics::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -9381,6 +10464,16 @@ enum class PHYRateType : uint8_t using PHYRateType = EmberAfPHYRateType; #endif +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace ResetCounts { +struct Type; +struct DecodableType; +} // namespace ResetCounts + +} // namespace Commands + namespace Commands { namespace ResetCounts { enum class Fields @@ -9395,6 +10488,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::EthernetNetworkDiagnostics::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -9534,6 +10629,31 @@ struct TypeInfo } // namespace EthernetNetworkDiagnostics namespace BridgedDeviceBasic { +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace StartUp { +struct Type; +struct DecodableType; +} // namespace StartUp + +namespace ShutDown { +struct Type; +struct DecodableType; +} // namespace ShutDown + +namespace Leave { +struct Type; +struct DecodableType; +} // namespace Leave + +namespace ReachableChanged { +struct Type; +struct DecodableType; +} // namespace ReachableChanged + +} // namespace Commands + namespace Commands { namespace StartUp { enum class Fields @@ -9548,6 +10668,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::BridgedDeviceBasic::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -9572,6 +10694,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::BridgedDeviceBasic::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -9596,6 +10720,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::BridgedDeviceBasic::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -9620,6 +10746,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::BridgedDeviceBasic::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -9887,6 +11015,26 @@ enum class StatusCode : uint8_t using StatusCode = EmberAfStatusCode; #endif +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace OpenCommissioningWindow { +struct Type; +struct DecodableType; +} // namespace OpenCommissioningWindow + +namespace OpenBasicCommissioningWindow { +struct Type; +struct DecodableType; +} // namespace OpenBasicCommissioningWindow + +namespace RevokeCommissioning { +struct Type; +struct DecodableType; +} // namespace RevokeCommissioning + +} // namespace Commands + namespace Commands { namespace OpenCommissioningWindow { enum class Fields @@ -9914,6 +11062,8 @@ struct Type uint16_t passcodeID; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -9947,6 +11097,8 @@ struct Type uint16_t commissioningTimeout; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -9972,6 +11124,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::AdministratorCommissioning::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -10083,6 +11237,76 @@ using DecodableType = Type; } // namespace NOCStruct } // namespace Structs +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace AttestationRequest { +struct Type; +struct DecodableType; +} // namespace AttestationRequest + +namespace AttestationResponse { +struct Type; +struct DecodableType; +} // namespace AttestationResponse + +namespace CertificateChainRequest { +struct Type; +struct DecodableType; +} // namespace CertificateChainRequest + +namespace CertificateChainResponse { +struct Type; +struct DecodableType; +} // namespace CertificateChainResponse + +namespace OpCSRRequest { +struct Type; +struct DecodableType; +} // namespace OpCSRRequest + +namespace OpCSRResponse { +struct Type; +struct DecodableType; +} // namespace OpCSRResponse + +namespace AddNOC { +struct Type; +struct DecodableType; +} // namespace AddNOC + +namespace UpdateNOC { +struct Type; +struct DecodableType; +} // namespace UpdateNOC + +namespace NOCResponse { +struct Type; +struct DecodableType; +} // namespace NOCResponse + +namespace UpdateFabricLabel { +struct Type; +struct DecodableType; +} // namespace UpdateFabricLabel + +namespace RemoveFabric { +struct Type; +struct DecodableType; +} // namespace RemoveFabric + +namespace AddTrustedRootCertificate { +struct Type; +struct DecodableType; +} // namespace AddTrustedRootCertificate + +namespace RemoveTrustedRootCertificate { +struct Type; +struct DecodableType; +} // namespace RemoveTrustedRootCertificate + +} // namespace Commands + namespace Commands { namespace AttestationRequest { enum class Fields @@ -10100,6 +11324,8 @@ struct Type chip::ByteSpan attestationNonce; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::OperationalCredentials::Commands::AttestationResponse::DecodableType; }; struct DecodableType @@ -10130,6 +11356,8 @@ struct Type chip::ByteSpan signature; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -10159,6 +11387,8 @@ struct Type uint8_t certificateType; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::OperationalCredentials::Commands::CertificateChainResponse::DecodableType; }; struct DecodableType @@ -10187,6 +11417,8 @@ struct Type chip::ByteSpan certificate; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -10215,6 +11447,8 @@ struct Type chip::ByteSpan CSRNonce; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::OperationalCredentials::Commands::OpCSRResponse::DecodableType; }; struct DecodableType @@ -10245,6 +11479,8 @@ struct Type chip::ByteSpan attestationSignature; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -10282,6 +11518,8 @@ struct Type uint16_t adminVendorId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::OperationalCredentials::Commands::NOCResponse::DecodableType; }; struct DecodableType @@ -10316,6 +11554,8 @@ struct Type Optional ICACValue; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::OperationalCredentials::Commands::NOCResponse::DecodableType; }; struct DecodableType @@ -10349,6 +11589,8 @@ struct Type chip::CharSpan debugText; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -10379,6 +11621,8 @@ struct Type chip::CharSpan label; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::OperationalCredentials::Commands::NOCResponse::DecodableType; }; struct DecodableType @@ -10407,6 +11651,8 @@ struct Type uint8_t fabricIndex; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::OperationalCredentials::Commands::NOCResponse::DecodableType; }; struct DecodableType @@ -10435,6 +11681,8 @@ struct Type chip::ByteSpan rootCertificate; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -10463,6 +11711,8 @@ struct Type chip::ByteSpan trustedRootIdentifier; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -10738,6 +11988,16 @@ using DecodableType = Type; } // namespace SemanticTag } // namespace Structs +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace ChangeToMode { +struct Type; +struct DecodableType; +} // namespace ChangeToMode + +} // namespace Commands + namespace Commands { namespace ChangeToMode { enum class Fields @@ -10755,6 +12015,8 @@ struct Type uint8_t newMode; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -11019,17 +12281,292 @@ enum class DoorLockUserType : uint8_t using DoorLockUserType = EmberAfDoorLockUserType; #endif -// Bitmap for DoorLockDayOfWeek -enum class DoorLockDayOfWeek : uint8_t -{ - kSunday = 0, - kMonday = 1, - kTuesday = 2, - kWednesday = 3, - kThursday = 4, - kFriday = 5, - kSaturday = 6, -}; +// Bitmap for DoorLockDayOfWeek +enum class DoorLockDayOfWeek : uint8_t +{ + kSunday = 0, + kMonday = 1, + kTuesday = 2, + kWednesday = 3, + kThursday = 4, + kFriday = 5, + kSaturday = 6, +}; + +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace LockDoor { +struct Type; +struct DecodableType; +} // namespace LockDoor + +namespace LockDoorResponse { +struct Type; +struct DecodableType; +} // namespace LockDoorResponse + +namespace UnlockDoor { +struct Type; +struct DecodableType; +} // namespace UnlockDoor + +namespace UnlockDoorResponse { +struct Type; +struct DecodableType; +} // namespace UnlockDoorResponse + +namespace Toggle { +struct Type; +struct DecodableType; +} // namespace Toggle + +namespace ToggleResponse { +struct Type; +struct DecodableType; +} // namespace ToggleResponse + +namespace UnlockWithTimeout { +struct Type; +struct DecodableType; +} // namespace UnlockWithTimeout + +namespace UnlockWithTimeoutResponse { +struct Type; +struct DecodableType; +} // namespace UnlockWithTimeoutResponse + +namespace GetLogRecord { +struct Type; +struct DecodableType; +} // namespace GetLogRecord + +namespace GetLogRecordResponse { +struct Type; +struct DecodableType; +} // namespace GetLogRecordResponse + +namespace SetPin { +struct Type; +struct DecodableType; +} // namespace SetPin + +namespace SetPinResponse { +struct Type; +struct DecodableType; +} // namespace SetPinResponse + +namespace GetPin { +struct Type; +struct DecodableType; +} // namespace GetPin + +namespace GetPinResponse { +struct Type; +struct DecodableType; +} // namespace GetPinResponse + +namespace ClearPin { +struct Type; +struct DecodableType; +} // namespace ClearPin + +namespace ClearPinResponse { +struct Type; +struct DecodableType; +} // namespace ClearPinResponse + +namespace ClearAllPins { +struct Type; +struct DecodableType; +} // namespace ClearAllPins + +namespace ClearAllPinsResponse { +struct Type; +struct DecodableType; +} // namespace ClearAllPinsResponse + +namespace SetUserStatus { +struct Type; +struct DecodableType; +} // namespace SetUserStatus + +namespace SetUserStatusResponse { +struct Type; +struct DecodableType; +} // namespace SetUserStatusResponse + +namespace GetUserStatus { +struct Type; +struct DecodableType; +} // namespace GetUserStatus + +namespace GetUserStatusResponse { +struct Type; +struct DecodableType; +} // namespace GetUserStatusResponse + +namespace SetWeekdaySchedule { +struct Type; +struct DecodableType; +} // namespace SetWeekdaySchedule + +namespace SetWeekdayScheduleResponse { +struct Type; +struct DecodableType; +} // namespace SetWeekdayScheduleResponse + +namespace GetWeekdaySchedule { +struct Type; +struct DecodableType; +} // namespace GetWeekdaySchedule + +namespace GetWeekdayScheduleResponse { +struct Type; +struct DecodableType; +} // namespace GetWeekdayScheduleResponse + +namespace ClearWeekdaySchedule { +struct Type; +struct DecodableType; +} // namespace ClearWeekdaySchedule + +namespace ClearWeekdayScheduleResponse { +struct Type; +struct DecodableType; +} // namespace ClearWeekdayScheduleResponse + +namespace SetYeardaySchedule { +struct Type; +struct DecodableType; +} // namespace SetYeardaySchedule + +namespace SetYeardayScheduleResponse { +struct Type; +struct DecodableType; +} // namespace SetYeardayScheduleResponse + +namespace GetYeardaySchedule { +struct Type; +struct DecodableType; +} // namespace GetYeardaySchedule + +namespace GetYeardayScheduleResponse { +struct Type; +struct DecodableType; +} // namespace GetYeardayScheduleResponse + +namespace ClearYeardaySchedule { +struct Type; +struct DecodableType; +} // namespace ClearYeardaySchedule + +namespace ClearYeardayScheduleResponse { +struct Type; +struct DecodableType; +} // namespace ClearYeardayScheduleResponse + +namespace SetHolidaySchedule { +struct Type; +struct DecodableType; +} // namespace SetHolidaySchedule + +namespace SetHolidayScheduleResponse { +struct Type; +struct DecodableType; +} // namespace SetHolidayScheduleResponse + +namespace GetHolidaySchedule { +struct Type; +struct DecodableType; +} // namespace GetHolidaySchedule + +namespace GetHolidayScheduleResponse { +struct Type; +struct DecodableType; +} // namespace GetHolidayScheduleResponse + +namespace ClearHolidaySchedule { +struct Type; +struct DecodableType; +} // namespace ClearHolidaySchedule + +namespace ClearHolidayScheduleResponse { +struct Type; +struct DecodableType; +} // namespace ClearHolidayScheduleResponse + +namespace SetUserType { +struct Type; +struct DecodableType; +} // namespace SetUserType + +namespace SetUserTypeResponse { +struct Type; +struct DecodableType; +} // namespace SetUserTypeResponse + +namespace GetUserType { +struct Type; +struct DecodableType; +} // namespace GetUserType + +namespace GetUserTypeResponse { +struct Type; +struct DecodableType; +} // namespace GetUserTypeResponse + +namespace SetRfid { +struct Type; +struct DecodableType; +} // namespace SetRfid + +namespace SetRfidResponse { +struct Type; +struct DecodableType; +} // namespace SetRfidResponse + +namespace GetRfid { +struct Type; +struct DecodableType; +} // namespace GetRfid + +namespace GetRfidResponse { +struct Type; +struct DecodableType; +} // namespace GetRfidResponse + +namespace ClearRfid { +struct Type; +struct DecodableType; +} // namespace ClearRfid + +namespace ClearRfidResponse { +struct Type; +struct DecodableType; +} // namespace ClearRfidResponse + +namespace ClearAllRfids { +struct Type; +struct DecodableType; +} // namespace ClearAllRfids + +namespace ClearAllRfidsResponse { +struct Type; +struct DecodableType; +} // namespace ClearAllRfidsResponse + +namespace OperationEventNotification { +struct Type; +struct DecodableType; +} // namespace OperationEventNotification + +namespace ProgrammingEventNotification { +struct Type; +struct DecodableType; +} // namespace ProgrammingEventNotification + +} // namespace Commands namespace Commands { namespace LockDoor { @@ -11048,6 +12585,8 @@ struct Type chip::ByteSpan pin; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::DoorLock::Commands::LockDoorResponse::DecodableType; }; struct DecodableType @@ -11076,6 +12615,8 @@ struct Type uint8_t status; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -11104,6 +12645,8 @@ struct Type chip::ByteSpan pin; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::DoorLock::Commands::UnlockDoorResponse::DecodableType; }; struct DecodableType @@ -11132,6 +12675,8 @@ struct Type uint8_t status; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -11160,6 +12705,8 @@ struct Type chip::CharSpan pin; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::DoorLock::Commands::ToggleResponse::DecodableType; }; struct DecodableType @@ -11188,6 +12735,8 @@ struct Type uint8_t status; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -11218,6 +12767,8 @@ struct Type chip::ByteSpan pin; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::DoorLock::Commands::UnlockWithTimeoutResponse::DecodableType; }; struct DecodableType @@ -11247,6 +12798,8 @@ struct Type uint8_t status; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -11275,6 +12828,8 @@ struct Type uint16_t logIndex; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::DoorLock::Commands::GetLogRecordResponse::DecodableType; }; struct DecodableType @@ -11315,6 +12870,8 @@ struct Type chip::ByteSpan pin; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -11355,6 +12912,8 @@ struct Type chip::ByteSpan pin; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::DoorLock::Commands::SetPinResponse::DecodableType; }; struct DecodableType @@ -11386,6 +12945,8 @@ struct Type DoorLockSetPinOrIdStatus status; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -11414,6 +12975,8 @@ struct Type uint16_t userId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::DoorLock::Commands::GetPinResponse::DecodableType; }; struct DecodableType @@ -11448,6 +13011,8 @@ struct Type chip::ByteSpan pin; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -11479,6 +13044,8 @@ struct Type uint16_t userId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::DoorLock::Commands::ClearPinResponse::DecodableType; }; struct DecodableType @@ -11507,6 +13074,8 @@ struct Type uint8_t status; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -11532,6 +13101,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::DoorLock::Commands::ClearAllPinsResponse::DecodableType; }; struct DecodableType @@ -11559,6 +13130,8 @@ struct Type uint8_t status; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -11589,6 +13162,8 @@ struct Type uint8_t userStatus; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::DoorLock::Commands::SetUserStatusResponse::DecodableType; }; struct DecodableType @@ -11618,6 +13193,8 @@ struct Type uint8_t status; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -11646,6 +13223,8 @@ struct Type uint16_t userId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::DoorLock::Commands::GetUserStatusResponse::DecodableType; }; struct DecodableType @@ -11676,6 +13255,8 @@ struct Type uint8_t status; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -11717,6 +13298,8 @@ struct Type uint8_t endMinute; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::DoorLock::Commands::SetWeekdayScheduleResponse::DecodableType; }; struct DecodableType @@ -11751,6 +13334,8 @@ struct Type uint8_t status; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -11781,6 +13366,8 @@ struct Type uint16_t userId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::DoorLock::Commands::GetWeekdayScheduleResponse::DecodableType; }; struct DecodableType @@ -11824,6 +13411,8 @@ struct Type uint8_t endMinute; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -11861,6 +13450,8 @@ struct Type uint16_t userId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::DoorLock::Commands::ClearWeekdayScheduleResponse::DecodableType; }; struct DecodableType @@ -11890,6 +13481,8 @@ struct Type uint8_t status; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -11924,6 +13517,8 @@ struct Type uint32_t localEndTime; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::DoorLock::Commands::SetYeardayScheduleResponse::DecodableType; }; struct DecodableType @@ -11955,6 +13550,8 @@ struct Type uint8_t status; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -11985,6 +13582,8 @@ struct Type uint16_t userId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::DoorLock::Commands::GetYeardayScheduleResponse::DecodableType; }; struct DecodableType @@ -12022,6 +13621,8 @@ struct Type uint32_t localEndTime; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -12056,6 +13657,8 @@ struct Type uint16_t userId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::DoorLock::Commands::ClearYeardayScheduleResponse::DecodableType; }; struct DecodableType @@ -12085,6 +13688,8 @@ struct Type uint8_t status; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -12119,6 +13724,8 @@ struct Type uint8_t operatingModeDuringHoliday; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::DoorLock::Commands::SetHolidayScheduleResponse::DecodableType; }; struct DecodableType @@ -12150,6 +13757,8 @@ struct Type uint8_t status; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -12178,6 +13787,8 @@ struct Type uint8_t scheduleId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::DoorLock::Commands::GetHolidayScheduleResponse::DecodableType; }; struct DecodableType @@ -12214,6 +13825,8 @@ struct Type uint8_t operatingModeDuringHoliday; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -12246,6 +13859,8 @@ struct Type uint8_t scheduleId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::DoorLock::Commands::ClearHolidayScheduleResponse::DecodableType; }; struct DecodableType @@ -12274,6 +13889,8 @@ struct Type uint8_t status; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -12304,6 +13921,8 @@ struct Type DoorLockUserType userType; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::DoorLock::Commands::SetUserTypeResponse::DecodableType; }; struct DecodableType @@ -12333,6 +13952,8 @@ struct Type uint8_t status; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -12361,6 +13982,8 @@ struct Type uint16_t userId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::DoorLock::Commands::GetUserTypeResponse::DecodableType; }; struct DecodableType @@ -12391,6 +14014,8 @@ struct Type DoorLockUserType userType; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -12426,6 +14051,8 @@ struct Type chip::ByteSpan id; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::DoorLock::Commands::SetRfidResponse::DecodableType; }; struct DecodableType @@ -12457,6 +14084,8 @@ struct Type DoorLockSetPinOrIdStatus status; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -12485,6 +14114,8 @@ struct Type uint16_t userId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::DoorLock::Commands::GetRfidResponse::DecodableType; }; struct DecodableType @@ -12519,6 +14150,8 @@ struct Type chip::ByteSpan rfid; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -12550,6 +14183,8 @@ struct Type uint16_t userId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::DoorLock::Commands::ClearRfidResponse::DecodableType; }; struct DecodableType @@ -12578,6 +14213,8 @@ struct Type uint8_t status; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -12603,6 +14240,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::DoorLock::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::DoorLock::Commands::ClearAllRfidsResponse::DecodableType; }; struct DecodableType @@ -12630,6 +14269,8 @@ struct Type uint8_t status; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -12668,6 +14309,8 @@ struct Type chip::CharSpan data; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -12715,6 +14358,8 @@ struct Type chip::CharSpan data; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -13282,6 +14927,46 @@ enum class WcSafetyStatus : uint16_t kProtection = 11, }; +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace UpOrOpen { +struct Type; +struct DecodableType; +} // namespace UpOrOpen + +namespace DownOrClose { +struct Type; +struct DecodableType; +} // namespace DownOrClose + +namespace StopMotion { +struct Type; +struct DecodableType; +} // namespace StopMotion + +namespace GoToLiftValue { +struct Type; +struct DecodableType; +} // namespace GoToLiftValue + +namespace GoToLiftPercentage { +struct Type; +struct DecodableType; +} // namespace GoToLiftPercentage + +namespace GoToTiltValue { +struct Type; +struct DecodableType; +} // namespace GoToTiltValue + +namespace GoToTiltPercentage { +struct Type; +struct DecodableType; +} // namespace GoToTiltPercentage + +} // namespace Commands + namespace Commands { namespace UpOrOpen { enum class Fields @@ -13296,6 +14981,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -13320,6 +15007,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -13344,6 +15033,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::WindowCovering::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -13371,6 +15062,8 @@ struct Type uint16_t liftValue; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -13401,6 +15094,8 @@ struct Type uint16_t liftPercent100thsValue; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -13430,6 +15125,8 @@ struct Type uint16_t tiltValue; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -13460,6 +15157,8 @@ struct Type uint16_t tiltPercent100thsValue; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -13799,6 +15498,21 @@ struct TypeInfo } // namespace WindowCovering namespace BarrierControl { +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace BarrierControlGoToPercent { +struct Type; +struct DecodableType; +} // namespace BarrierControlGoToPercent + +namespace BarrierControlStop { +struct Type; +struct DecodableType; +} // namespace BarrierControlStop + +} // namespace Commands + namespace Commands { namespace BarrierControlGoToPercent { enum class Fields @@ -13816,6 +15530,8 @@ struct Type uint8_t percentOpen; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -13841,6 +15557,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::BarrierControl::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -14837,6 +16555,46 @@ enum class ModeForSequence : uint8_t kCoolSetpointFieldPresent = 1, }; +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace SetpointRaiseLower { +struct Type; +struct DecodableType; +} // namespace SetpointRaiseLower + +namespace CurrentWeeklySchedule { +struct Type; +struct DecodableType; +} // namespace CurrentWeeklySchedule + +namespace SetWeeklySchedule { +struct Type; +struct DecodableType; +} // namespace SetWeeklySchedule + +namespace RelayStatusLog { +struct Type; +struct DecodableType; +} // namespace RelayStatusLog + +namespace GetWeeklySchedule { +struct Type; +struct DecodableType; +} // namespace GetWeeklySchedule + +namespace ClearWeeklySchedule { +struct Type; +struct DecodableType; +} // namespace ClearWeeklySchedule + +namespace GetRelayStatusLog { +struct Type; +struct DecodableType; +} // namespace GetRelayStatusLog + +} // namespace Commands + namespace Commands { namespace SetpointRaiseLower { enum class Fields @@ -14856,6 +16614,8 @@ struct Type int8_t amount; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -14891,6 +16651,8 @@ struct Type DataModel::List payload; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -14928,6 +16690,8 @@ struct Type DataModel::List payload; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -14969,6 +16733,8 @@ struct Type uint16_t unreadEntries; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -15004,6 +16770,8 @@ struct Type chip::BitFlags modeToReturn; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -15030,6 +16798,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -15054,6 +16824,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::Thermostat::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -15893,24 +17665,124 @@ enum class SaturationStepMode : uint8_t using SaturationStepMode = EmberAfSaturationStepMode; #endif -// Bitmap for ColorCapabilities -enum class ColorCapabilities : uint16_t -{ - kHueSaturationSupported = 0, - kEnhancedHueSupported = 1, - kColorLoopSupported = 2, - kXYAttributesSupported = 3, - kColorTemperatureSupported = 4, -}; +// Bitmap for ColorCapabilities +enum class ColorCapabilities : uint16_t +{ + kHueSaturationSupported = 0, + kEnhancedHueSupported = 1, + kColorLoopSupported = 2, + kXYAttributesSupported = 3, + kColorTemperatureSupported = 4, +}; + +// Bitmap for ColorLoopUpdateFlags +enum class ColorLoopUpdateFlags : uint8_t +{ + kUpdateAction = 0, + kUpdateDirection = 1, + kUpdateTime = 2, + kUpdateStartHue = 3, +}; + +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace MoveToHue { +struct Type; +struct DecodableType; +} // namespace MoveToHue + +namespace MoveHue { +struct Type; +struct DecodableType; +} // namespace MoveHue + +namespace StepHue { +struct Type; +struct DecodableType; +} // namespace StepHue + +namespace MoveToSaturation { +struct Type; +struct DecodableType; +} // namespace MoveToSaturation + +namespace MoveSaturation { +struct Type; +struct DecodableType; +} // namespace MoveSaturation + +namespace StepSaturation { +struct Type; +struct DecodableType; +} // namespace StepSaturation + +namespace MoveToHueAndSaturation { +struct Type; +struct DecodableType; +} // namespace MoveToHueAndSaturation + +namespace MoveToColor { +struct Type; +struct DecodableType; +} // namespace MoveToColor + +namespace MoveColor { +struct Type; +struct DecodableType; +} // namespace MoveColor + +namespace StepColor { +struct Type; +struct DecodableType; +} // namespace StepColor + +namespace MoveToColorTemperature { +struct Type; +struct DecodableType; +} // namespace MoveToColorTemperature + +namespace EnhancedMoveToHue { +struct Type; +struct DecodableType; +} // namespace EnhancedMoveToHue + +namespace EnhancedMoveHue { +struct Type; +struct DecodableType; +} // namespace EnhancedMoveHue + +namespace EnhancedStepHue { +struct Type; +struct DecodableType; +} // namespace EnhancedStepHue + +namespace EnhancedMoveToHueAndSaturation { +struct Type; +struct DecodableType; +} // namespace EnhancedMoveToHueAndSaturation -// Bitmap for ColorLoopUpdateFlags -enum class ColorLoopUpdateFlags : uint8_t -{ - kUpdateAction = 0, - kUpdateDirection = 1, - kUpdateTime = 2, - kUpdateStartHue = 3, -}; +namespace ColorLoopSet { +struct Type; +struct DecodableType; +} // namespace ColorLoopSet + +namespace StopMoveStep { +struct Type; +struct DecodableType; +} // namespace StopMoveStep + +namespace MoveColorTemperature { +struct Type; +struct DecodableType; +} // namespace MoveColorTemperature + +namespace StepColorTemperature { +struct Type; +struct DecodableType; +} // namespace StepColorTemperature + +} // namespace Commands namespace Commands { namespace MoveToHue { @@ -15937,6 +17809,8 @@ struct Type uint8_t optionsOverride; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -15975,6 +17849,8 @@ struct Type uint8_t optionsOverride; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -16014,6 +17890,8 @@ struct Type uint8_t optionsOverride; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -16052,6 +17930,8 @@ struct Type uint8_t optionsOverride; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -16089,6 +17969,8 @@ struct Type uint8_t optionsOverride; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -16128,6 +18010,8 @@ struct Type uint8_t optionsOverride; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -16168,6 +18052,8 @@ struct Type uint8_t optionsOverride; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -16208,6 +18094,8 @@ struct Type uint8_t optionsOverride; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -16246,6 +18134,8 @@ struct Type uint8_t optionsOverride; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -16285,6 +18175,8 @@ struct Type uint8_t optionsOverride; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -16323,6 +18215,8 @@ struct Type uint8_t optionsOverride; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -16362,6 +18256,8 @@ struct Type uint8_t optionsOverride; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -16400,6 +18296,8 @@ struct Type uint8_t optionsOverride; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -16439,6 +18337,8 @@ struct Type uint8_t optionsOverride; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -16479,6 +18379,8 @@ struct Type uint8_t optionsOverride; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -16523,6 +18425,8 @@ struct Type uint8_t optionsOverride; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -16559,6 +18463,8 @@ struct Type uint8_t optionsOverride; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -16598,6 +18504,8 @@ struct Type uint8_t optionsOverride; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -16643,6 +18551,8 @@ struct Type uint8_t optionsOverride; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -20242,6 +22152,46 @@ enum class IasZoneStatus : uint16_t kBatteryDefect = 9, }; +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace ZoneEnrollResponse { +struct Type; +struct DecodableType; +} // namespace ZoneEnrollResponse + +namespace ZoneStatusChangeNotification { +struct Type; +struct DecodableType; +} // namespace ZoneStatusChangeNotification + +namespace InitiateNormalOperationMode { +struct Type; +struct DecodableType; +} // namespace InitiateNormalOperationMode + +namespace ZoneEnrollRequest { +struct Type; +struct DecodableType; +} // namespace ZoneEnrollRequest + +namespace InitiateTestMode { +struct Type; +struct DecodableType; +} // namespace InitiateTestMode + +namespace InitiateNormalOperationModeResponse { +struct Type; +struct DecodableType; +} // namespace InitiateNormalOperationModeResponse + +namespace InitiateTestModeResponse { +struct Type; +struct DecodableType; +} // namespace InitiateTestModeResponse + +} // namespace Commands + namespace Commands { namespace ZoneEnrollResponse { enum class Fields @@ -20261,6 +22211,8 @@ struct Type uint8_t zoneId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -20296,6 +22248,8 @@ struct Type uint16_t delay; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -20324,6 +22278,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::IasZone::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::IasZone::Commands::InitiateNormalOperationModeResponse::DecodableType; }; struct DecodableType @@ -20353,6 +22309,8 @@ struct Type uint16_t manufacturerCode; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::IasZone::Commands::ZoneEnrollResponse::DecodableType; }; struct DecodableType @@ -20384,6 +22342,8 @@ struct Type uint8_t currentZoneSensitivityLevel; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::IasZone::Commands::InitiateTestModeResponse::DecodableType; }; struct DecodableType @@ -20410,6 +22370,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::IasZone::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -20434,6 +22396,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::IasZone::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -20712,6 +22676,106 @@ using DecodableType = Type; } // namespace IasAceZoneStatusResult } // namespace Structs +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace Arm { +struct Type; +struct DecodableType; +} // namespace Arm + +namespace ArmResponse { +struct Type; +struct DecodableType; +} // namespace ArmResponse + +namespace Bypass { +struct Type; +struct DecodableType; +} // namespace Bypass + +namespace GetZoneIdMapResponse { +struct Type; +struct DecodableType; +} // namespace GetZoneIdMapResponse + +namespace Emergency { +struct Type; +struct DecodableType; +} // namespace Emergency + +namespace GetZoneInformationResponse { +struct Type; +struct DecodableType; +} // namespace GetZoneInformationResponse + +namespace Fire { +struct Type; +struct DecodableType; +} // namespace Fire + +namespace ZoneStatusChanged { +struct Type; +struct DecodableType; +} // namespace ZoneStatusChanged + +namespace Panic { +struct Type; +struct DecodableType; +} // namespace Panic + +namespace PanelStatusChanged { +struct Type; +struct DecodableType; +} // namespace PanelStatusChanged + +namespace GetZoneIdMap { +struct Type; +struct DecodableType; +} // namespace GetZoneIdMap + +namespace GetPanelStatusResponse { +struct Type; +struct DecodableType; +} // namespace GetPanelStatusResponse + +namespace GetZoneInformation { +struct Type; +struct DecodableType; +} // namespace GetZoneInformation + +namespace SetBypassedZoneList { +struct Type; +struct DecodableType; +} // namespace SetBypassedZoneList + +namespace GetPanelStatus { +struct Type; +struct DecodableType; +} // namespace GetPanelStatus + +namespace BypassResponse { +struct Type; +struct DecodableType; +} // namespace BypassResponse + +namespace GetBypassedZoneList { +struct Type; +struct DecodableType; +} // namespace GetBypassedZoneList + +namespace GetZoneStatusResponse { +struct Type; +struct DecodableType; +} // namespace GetZoneStatusResponse + +namespace GetZoneStatus { +struct Type; +struct DecodableType; +} // namespace GetZoneStatus + +} // namespace Commands + namespace Commands { namespace Arm { enum class Fields @@ -20733,6 +22797,8 @@ struct Type uint8_t zoneId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::IasAce::Commands::ArmResponse::DecodableType; }; struct DecodableType @@ -20763,6 +22829,8 @@ struct Type IasAceArmNotification armNotification; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -20795,6 +22863,8 @@ struct Type chip::CharSpan armDisarmCode; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::IasAce::Commands::BypassResponse::DecodableType; }; struct DecodableType @@ -20855,6 +22925,8 @@ struct Type uint16_t section15; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -20895,6 +22967,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::IasAce::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -20928,6 +23002,8 @@ struct Type chip::CharSpan zoneLabel; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -20956,6 +23032,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::IasAce::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -20989,6 +23067,8 @@ struct Type chip::CharSpan zoneLabel; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -21017,6 +23097,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::IasAce::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -21050,6 +23132,8 @@ struct Type IasAceAlarmStatus alarmStatus; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -21078,6 +23162,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::IasAce::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::IasAce::Commands::GetZoneIdMapResponse::DecodableType; }; struct DecodableType @@ -21111,6 +23197,8 @@ struct Type IasAceAlarmStatus alarmStatus; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -21142,6 +23230,8 @@ struct Type uint8_t zoneId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::IasAce::Commands::GetZoneInformationResponse::DecodableType; }; struct DecodableType @@ -21172,6 +23262,8 @@ struct Type DataModel::List zoneIds; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -21198,6 +23290,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::IasAce::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::IasAce::Commands::GetPanelStatusResponse::DecodableType; }; struct DecodableType @@ -21227,6 +23321,8 @@ struct Type DataModel::List bypassResult; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -21253,6 +23349,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::IasAce::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -21284,6 +23382,8 @@ struct Type DataModel::List zoneStatusResult; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -21320,6 +23420,8 @@ struct Type uint16_t zoneStatusMask; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::IasAce::Commands::GetZoneStatusResponse::DecodableType; }; struct DecodableType @@ -21380,6 +23482,21 @@ enum class WarningInfo : uint8_t kSirenLevel = 0, }; +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace StartWarning { +struct Type; +struct DecodableType; +} // namespace StartWarning + +namespace Squawk { +struct Type; +struct DecodableType; +} // namespace Squawk + +} // namespace Commands + namespace Commands { namespace StartWarning { enum class Fields @@ -21403,6 +23520,8 @@ struct Type uint8_t strobeLevel; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -21434,6 +23553,8 @@ struct Type chip::BitFlags squawkInfo; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -21600,6 +23721,31 @@ using DecodableType = Type; } // namespace TvChannelLineupInfo } // namespace Structs +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace ChangeChannel { +struct Type; +struct DecodableType; +} // namespace ChangeChannel + +namespace ChangeChannelResponse { +struct Type; +struct DecodableType; +} // namespace ChangeChannelResponse + +namespace ChangeChannelByNumber { +struct Type; +struct DecodableType; +} // namespace ChangeChannelByNumber + +namespace SkipChannel { +struct Type; +struct DecodableType; +} // namespace SkipChannel + +} // namespace Commands + namespace Commands { namespace ChangeChannel { enum class Fields @@ -21617,6 +23763,8 @@ struct Type chip::CharSpan match; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::TvChannel::Commands::ChangeChannelResponse::DecodableType; }; struct DecodableType @@ -21647,6 +23795,8 @@ struct Type TvChannelErrorType errorType; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -21678,6 +23828,8 @@ struct Type uint16_t minorNumber; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -21707,6 +23859,8 @@ struct Type uint16_t count; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -21817,6 +23971,21 @@ using DecodableType = Type; } // namespace NavigateTargetTargetInfo } // namespace Structs +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace NavigateTarget { +struct Type; +struct DecodableType; +} // namespace NavigateTarget + +namespace NavigateTargetResponse { +struct Type; +struct DecodableType; +} // namespace NavigateTargetResponse + +} // namespace Commands + namespace Commands { namespace NavigateTarget { enum class Fields @@ -21836,6 +24005,8 @@ struct Type chip::CharSpan data; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::TargetNavigator::Commands::NavigateTargetResponse::DecodableType; }; struct DecodableType @@ -21867,6 +24038,8 @@ struct Type chip::CharSpan data; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -21984,6 +24157,121 @@ using DecodableType = Type; } // namespace MediaPlaybackPosition } // namespace Structs +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace MediaPlay { +struct Type; +struct DecodableType; +} // namespace MediaPlay + +namespace MediaPlayResponse { +struct Type; +struct DecodableType; +} // namespace MediaPlayResponse + +namespace MediaPause { +struct Type; +struct DecodableType; +} // namespace MediaPause + +namespace MediaPauseResponse { +struct Type; +struct DecodableType; +} // namespace MediaPauseResponse + +namespace MediaStop { +struct Type; +struct DecodableType; +} // namespace MediaStop + +namespace MediaStopResponse { +struct Type; +struct DecodableType; +} // namespace MediaStopResponse + +namespace MediaStartOver { +struct Type; +struct DecodableType; +} // namespace MediaStartOver + +namespace MediaStartOverResponse { +struct Type; +struct DecodableType; +} // namespace MediaStartOverResponse + +namespace MediaPrevious { +struct Type; +struct DecodableType; +} // namespace MediaPrevious + +namespace MediaPreviousResponse { +struct Type; +struct DecodableType; +} // namespace MediaPreviousResponse + +namespace MediaNext { +struct Type; +struct DecodableType; +} // namespace MediaNext + +namespace MediaNextResponse { +struct Type; +struct DecodableType; +} // namespace MediaNextResponse + +namespace MediaRewind { +struct Type; +struct DecodableType; +} // namespace MediaRewind + +namespace MediaRewindResponse { +struct Type; +struct DecodableType; +} // namespace MediaRewindResponse + +namespace MediaFastForward { +struct Type; +struct DecodableType; +} // namespace MediaFastForward + +namespace MediaFastForwardResponse { +struct Type; +struct DecodableType; +} // namespace MediaFastForwardResponse + +namespace MediaSkipForward { +struct Type; +struct DecodableType; +} // namespace MediaSkipForward + +namespace MediaSkipForwardResponse { +struct Type; +struct DecodableType; +} // namespace MediaSkipForwardResponse + +namespace MediaSkipBackward { +struct Type; +struct DecodableType; +} // namespace MediaSkipBackward + +namespace MediaSkipBackwardResponse { +struct Type; +struct DecodableType; +} // namespace MediaSkipBackwardResponse + +namespace MediaSeek { +struct Type; +struct DecodableType; +} // namespace MediaSeek + +namespace MediaSeekResponse { +struct Type; +struct DecodableType; +} // namespace MediaSeekResponse + +} // namespace Commands + namespace Commands { namespace MediaPlay { enum class Fields @@ -21998,6 +24286,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::MediaPlayback::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::MediaPlayback::Commands::MediaPlayResponse::DecodableType; }; struct DecodableType @@ -22025,6 +24315,8 @@ struct Type MediaPlaybackStatus mediaPlaybackStatus; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -22050,6 +24342,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::MediaPlayback::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::MediaPlayback::Commands::MediaPauseResponse::DecodableType; }; struct DecodableType @@ -22077,6 +24371,8 @@ struct Type MediaPlaybackStatus mediaPlaybackStatus; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -22102,6 +24398,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::MediaPlayback::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::MediaPlayback::Commands::MediaStopResponse::DecodableType; }; struct DecodableType @@ -22129,6 +24427,8 @@ struct Type MediaPlaybackStatus mediaPlaybackStatus; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -22154,6 +24454,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::MediaPlayback::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::MediaPlayback::Commands::MediaStartOverResponse::DecodableType; }; struct DecodableType @@ -22181,6 +24483,8 @@ struct Type MediaPlaybackStatus mediaPlaybackStatus; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -22206,6 +24510,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::MediaPlayback::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::MediaPlayback::Commands::MediaPreviousResponse::DecodableType; }; struct DecodableType @@ -22233,6 +24539,8 @@ struct Type MediaPlaybackStatus mediaPlaybackStatus; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -22258,6 +24566,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::MediaPlayback::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::MediaPlayback::Commands::MediaNextResponse::DecodableType; }; struct DecodableType @@ -22285,6 +24595,8 @@ struct Type MediaPlaybackStatus mediaPlaybackStatus; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -22310,6 +24622,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::MediaPlayback::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::MediaPlayback::Commands::MediaRewindResponse::DecodableType; }; struct DecodableType @@ -22337,6 +24651,8 @@ struct Type MediaPlaybackStatus mediaPlaybackStatus; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -22362,6 +24678,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::MediaPlayback::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::MediaPlayback::Commands::MediaFastForwardResponse::DecodableType; }; struct DecodableType @@ -22389,6 +24707,8 @@ struct Type MediaPlaybackStatus mediaPlaybackStatus; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -22417,6 +24737,8 @@ struct Type uint64_t deltaPositionMilliseconds; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::MediaPlayback::Commands::MediaSkipForwardResponse::DecodableType; }; struct DecodableType @@ -22445,6 +24767,8 @@ struct Type MediaPlaybackStatus mediaPlaybackStatus; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -22473,6 +24797,8 @@ struct Type uint64_t deltaPositionMilliseconds; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::MediaPlayback::Commands::MediaSkipBackwardResponse::DecodableType; }; struct DecodableType @@ -22501,6 +24827,8 @@ struct Type MediaPlaybackStatus mediaPlaybackStatus; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -22529,6 +24857,8 @@ struct Type uint64_t position; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::MediaPlayback::Commands::MediaSeekResponse::DecodableType; }; struct DecodableType @@ -22557,6 +24887,8 @@ struct Type MediaPlaybackStatus mediaPlaybackStatus; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -22735,6 +25067,31 @@ using DecodableType = Type; } // namespace MediaInputInfo } // namespace Structs +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace SelectInput { +struct Type; +struct DecodableType; +} // namespace SelectInput + +namespace ShowInputStatus { +struct Type; +struct DecodableType; +} // namespace ShowInputStatus + +namespace HideInputStatus { +struct Type; +struct DecodableType; +} // namespace HideInputStatus + +namespace RenameInput { +struct Type; +struct DecodableType; +} // namespace RenameInput + +} // namespace Commands + namespace Commands { namespace SelectInput { enum class Fields @@ -22752,6 +25109,8 @@ struct Type uint8_t index; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -22777,6 +25136,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::MediaInput::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -22801,6 +25162,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::MediaInput::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -22830,6 +25193,8 @@ struct Type chip::CharSpan name; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -22894,6 +25259,16 @@ struct TypeInfo } // namespace MediaInput namespace LowPower { +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace Sleep { +struct Type; +struct DecodableType; +} // namespace Sleep + +} // namespace Commands + namespace Commands { namespace Sleep { enum class Fields @@ -22908,6 +25283,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::LowPower::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -23057,6 +25434,21 @@ enum class KeypadInputStatus : uint8_t using KeypadInputStatus = EmberAfKeypadInputStatus; #endif +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace SendKey { +struct Type; +struct DecodableType; +} // namespace SendKey + +namespace SendKeyResponse { +struct Type; +struct DecodableType; +} // namespace SendKeyResponse + +} // namespace Commands + namespace Commands { namespace SendKey { enum class Fields @@ -23074,6 +25466,8 @@ struct Type KeypadInputCecKeyCode keyCode; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::KeypadInput::Commands::SendKeyResponse::DecodableType; }; struct DecodableType @@ -23102,6 +25496,8 @@ struct Type KeypadInputStatus status; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -23324,6 +25720,31 @@ using DecodableType = Type; } // namespace ContentLaunchStyleInformation } // namespace Structs +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace LaunchContent { +struct Type; +struct DecodableType; +} // namespace LaunchContent + +namespace LaunchContentResponse { +struct Type; +struct DecodableType; +} // namespace LaunchContentResponse + +namespace LaunchURL { +struct Type; +struct DecodableType; +} // namespace LaunchURL + +namespace LaunchURLResponse { +struct Type; +struct DecodableType; +} // namespace LaunchURLResponse + +} // namespace Commands + namespace Commands { namespace LaunchContent { enum class Fields @@ -23343,6 +25764,8 @@ struct Type chip::CharSpan data; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::ContentLauncher::Commands::LaunchContentResponse::DecodableType; }; struct DecodableType @@ -23374,6 +25797,8 @@ struct Type ContentLaunchStatus contentLaunchStatus; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -23405,6 +25830,8 @@ struct Type chip::CharSpan displayString; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::ContentLauncher::Commands::LaunchURLResponse::DecodableType; }; struct DecodableType @@ -23436,6 +25863,8 @@ struct Type ContentLaunchStatus contentLaunchStatus; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -23541,6 +25970,21 @@ using DecodableType = Type; } // namespace AudioOutputInfo } // namespace Structs +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace SelectOutput { +struct Type; +struct DecodableType; +} // namespace SelectOutput + +namespace RenameOutput { +struct Type; +struct DecodableType; +} // namespace RenameOutput + +} // namespace Commands + namespace Commands { namespace SelectOutput { enum class Fields @@ -23558,6 +26002,8 @@ struct Type uint8_t index; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -23588,6 +26034,8 @@ struct Type chip::CharSpan name; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -23688,6 +26136,21 @@ using DecodableType = Type; } // namespace ApplicationLauncherApp } // namespace Structs +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace LaunchApp { +struct Type; +struct DecodableType; +} // namespace LaunchApp + +namespace LaunchAppResponse { +struct Type; +struct DecodableType; +} // namespace LaunchAppResponse + +} // namespace Commands + namespace Commands { namespace LaunchApp { enum class Fields @@ -23709,6 +26172,8 @@ struct Type chip::CharSpan applicationId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::ApplicationLauncher::Commands::LaunchAppResponse::DecodableType; }; struct DecodableType @@ -23741,6 +26206,8 @@ struct Type chip::CharSpan data; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -23830,6 +26297,16 @@ enum class ApplicationBasicStatus : uint8_t using ApplicationBasicStatus = EmberAfApplicationBasicStatus; #endif +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace ChangeStatus { +struct Type; +struct DecodableType; +} // namespace ChangeStatus + +} // namespace Commands + namespace Commands { namespace ChangeStatus { enum class Fields @@ -23847,6 +26324,8 @@ struct Type ApplicationBasicStatus status; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -23965,6 +26444,26 @@ struct TypeInfo } // namespace ApplicationBasic namespace AccountLogin { +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace GetSetupPIN { +struct Type; +struct DecodableType; +} // namespace GetSetupPIN + +namespace GetSetupPINResponse { +struct Type; +struct DecodableType; +} // namespace GetSetupPINResponse + +namespace Login { +struct Type; +struct DecodableType; +} // namespace Login + +} // namespace Commands + namespace Commands { namespace GetSetupPIN { enum class Fields @@ -23982,6 +26481,8 @@ struct Type chip::CharSpan tempAccountIdentifier; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::AccountLogin::Commands::GetSetupPINResponse::DecodableType; }; struct DecodableType @@ -24010,6 +26511,8 @@ struct Type chip::CharSpan setupPIN; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -24040,6 +26543,8 @@ struct Type chip::CharSpan setupPIN; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -24294,6 +26799,141 @@ using DecodableType = Type; } // namespace TestListStructOctet } // namespace Structs +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace Test { +struct Type; +struct DecodableType; +} // namespace Test + +namespace TestSpecificResponse { +struct Type; +struct DecodableType; +} // namespace TestSpecificResponse + +namespace TestNotHandled { +struct Type; +struct DecodableType; +} // namespace TestNotHandled + +namespace TestAddArgumentsResponse { +struct Type; +struct DecodableType; +} // namespace TestAddArgumentsResponse + +namespace TestSpecific { +struct Type; +struct DecodableType; +} // namespace TestSpecific + +namespace TestSimpleArgumentResponse { +struct Type; +struct DecodableType; +} // namespace TestSimpleArgumentResponse + +namespace TestUnknownCommand { +struct Type; +struct DecodableType; +} // namespace TestUnknownCommand + +namespace TestStructArrayArgumentResponse { +struct Type; +struct DecodableType; +} // namespace TestStructArrayArgumentResponse + +namespace TestAddArguments { +struct Type; +struct DecodableType; +} // namespace TestAddArguments + +namespace TestListInt8UReverseResponse { +struct Type; +struct DecodableType; +} // namespace TestListInt8UReverseResponse + +namespace TestSimpleArgumentRequest { +struct Type; +struct DecodableType; +} // namespace TestSimpleArgumentRequest + +namespace TestEnumsResponse { +struct Type; +struct DecodableType; +} // namespace TestEnumsResponse + +namespace TestStructArrayArgumentRequest { +struct Type; +struct DecodableType; +} // namespace TestStructArrayArgumentRequest + +namespace TestNullableOptionalResponse { +struct Type; +struct DecodableType; +} // namespace TestNullableOptionalResponse + +namespace TestStructArgumentRequest { +struct Type; +struct DecodableType; +} // namespace TestStructArgumentRequest + +namespace TestComplexNullableOptionalResponse { +struct Type; +struct DecodableType; +} // namespace TestComplexNullableOptionalResponse + +namespace TestNestedStructArgumentRequest { +struct Type; +struct DecodableType; +} // namespace TestNestedStructArgumentRequest + +namespace BooleanResponse { +struct Type; +struct DecodableType; +} // namespace BooleanResponse + +namespace TestListStructArgumentRequest { +struct Type; +struct DecodableType; +} // namespace TestListStructArgumentRequest + +namespace TestListInt8UArgumentRequest { +struct Type; +struct DecodableType; +} // namespace TestListInt8UArgumentRequest + +namespace TestNestedStructListArgumentRequest { +struct Type; +struct DecodableType; +} // namespace TestNestedStructListArgumentRequest + +namespace TestListNestedStructListArgumentRequest { +struct Type; +struct DecodableType; +} // namespace TestListNestedStructListArgumentRequest + +namespace TestListInt8UReverseRequest { +struct Type; +struct DecodableType; +} // namespace TestListInt8UReverseRequest + +namespace TestEnumsRequest { +struct Type; +struct DecodableType; +} // namespace TestEnumsRequest + +namespace TestNullableOptionalRequest { +struct Type; +struct DecodableType; +} // namespace TestNullableOptionalRequest + +namespace TestComplexNullableOptionalRequest { +struct Type; +struct DecodableType; +} // namespace TestComplexNullableOptionalRequest + +} // namespace Commands + namespace Commands { namespace Test { enum class Fields @@ -24308,6 +26948,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -24335,6 +26977,8 @@ struct Type uint8_t returnValue; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -24360,6 +27004,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -24387,6 +27033,8 @@ struct Type uint8_t returnValue; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -24412,6 +27060,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::TestCluster::Commands::TestSpecificResponse::DecodableType; }; struct DecodableType @@ -24439,6 +27089,8 @@ struct Type bool returnValue; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -24464,6 +27116,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::TestCluster::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -24501,6 +27155,8 @@ struct Type bool arg6; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -24536,6 +27192,8 @@ struct Type uint8_t arg2; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::TestCluster::Commands::TestAddArgumentsResponse::DecodableType; }; struct DecodableType @@ -24565,6 +27223,8 @@ struct Type DataModel::List arg1; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -24593,6 +27253,8 @@ struct Type bool arg1; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::TestCluster::Commands::TestSimpleArgumentResponse::DecodableType; }; struct DecodableType @@ -24623,6 +27285,8 @@ struct Type SimpleEnum arg2; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -24662,6 +27326,8 @@ struct Type bool arg6; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::TestCluster::Commands::TestStructArrayArgumentResponse::DecodableType; }; struct DecodableType @@ -24701,6 +27367,8 @@ struct Type Optional> originalValue; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -24732,6 +27400,8 @@ struct Type Structs::SimpleStruct::Type arg1; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::TestCluster::Commands::BooleanResponse::DecodableType; }; struct DecodableType @@ -24814,6 +27484,8 @@ struct Type Optional> nullableOptionalListValue; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -24869,6 +27541,8 @@ struct Type Structs::NestedStruct::Type arg1; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::TestCluster::Commands::BooleanResponse::DecodableType; }; struct DecodableType @@ -24897,6 +27571,8 @@ struct Type bool value; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -24925,6 +27601,8 @@ struct Type DataModel::List arg1; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::TestCluster::Commands::BooleanResponse::DecodableType; }; struct DecodableType @@ -24953,6 +27631,8 @@ struct Type DataModel::List arg1; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::TestCluster::Commands::BooleanResponse::DecodableType; }; struct DecodableType @@ -24981,6 +27661,8 @@ struct Type Structs::NestedStructList::Type arg1; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::TestCluster::Commands::BooleanResponse::DecodableType; }; struct DecodableType @@ -25009,6 +27691,8 @@ struct Type DataModel::List arg1; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -25037,6 +27721,8 @@ struct Type DataModel::List arg1; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::TestCluster::Commands::TestListInt8UReverseResponse::DecodableType; }; struct DecodableType @@ -25067,6 +27753,8 @@ struct Type SimpleEnum arg2; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::TestCluster::Commands::TestEnumsResponse::DecodableType; }; struct DecodableType @@ -25096,6 +27784,8 @@ struct Type Optional> arg1; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::TestCluster::Commands::TestNullableOptionalResponse::DecodableType; }; struct DecodableType @@ -25146,6 +27836,8 @@ struct Type Optional>> nullableOptionalList; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::TestCluster::Commands::TestComplexNullableOptionalResponse::DecodableType; }; struct DecodableType @@ -25710,6 +28402,46 @@ enum class MessagingExtendedControlMask : uint8_t kMessageConfirmationStatus = 0, }; +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace DisplayMessage { +struct Type; +struct DecodableType; +} // namespace DisplayMessage + +namespace GetLastMessage { +struct Type; +struct DecodableType; +} // namespace GetLastMessage + +namespace CancelMessage { +struct Type; +struct DecodableType; +} // namespace CancelMessage + +namespace MessageConfirmation { +struct Type; +struct DecodableType; +} // namespace MessageConfirmation + +namespace DisplayProtectedMessage { +struct Type; +struct DecodableType; +} // namespace DisplayProtectedMessage + +namespace GetMessageCancellation { +struct Type; +struct DecodableType; +} // namespace GetMessageCancellation + +namespace CancelAllMessages { +struct Type; +struct DecodableType; +} // namespace CancelAllMessages + +} // namespace Commands + namespace Commands { namespace DisplayMessage { enum class Fields @@ -25737,6 +28469,8 @@ struct Type chip::BitFlags optionalExtendedMessageControl; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -25767,6 +28501,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::Messaging::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -25796,6 +28532,8 @@ struct Type chip::BitFlags messageControl; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -25831,6 +28569,8 @@ struct Type chip::ByteSpan messageResponse; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -25872,6 +28612,8 @@ struct Type chip::BitFlags optionalExtendedMessageControl; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -25905,6 +28647,8 @@ struct Type uint32_t earliestImplementationTime; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -25933,6 +28677,8 @@ struct Type uint32_t implementationDateTime; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -26322,6 +29068,31 @@ enum class AlertStructure : uint32_t kPresenceRecovery = 12, }; +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace GetAlerts { +struct Type; +struct DecodableType; +} // namespace GetAlerts + +namespace GetAlertsResponse { +struct Type; +struct DecodableType; +} // namespace GetAlertsResponse + +namespace AlertsNotification { +struct Type; +struct DecodableType; +} // namespace AlertsNotification + +namespace EventsNotification { +struct Type; +struct DecodableType; +} // namespace EventsNotification + +} // namespace Commands + namespace Commands { namespace GetAlerts { enum class Fields @@ -26336,6 +29107,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::ApplianceEventsAndAlert::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::ApplianceEventsAndAlert::Commands::GetAlertsResponse::DecodableType; }; struct DecodableType @@ -26365,6 +29138,8 @@ struct Type DataModel::List> alertStructures; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -26396,6 +29171,8 @@ struct Type DataModel::List> alertStructures; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -26427,6 +29204,8 @@ struct Type EventIdentification eventId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -26469,6 +29248,41 @@ struct TypeInfo } // namespace ApplianceEventsAndAlert namespace ApplianceStatistics { +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace LogNotification { +struct Type; +struct DecodableType; +} // namespace LogNotification + +namespace LogRequest { +struct Type; +struct DecodableType; +} // namespace LogRequest + +namespace LogResponse { +struct Type; +struct DecodableType; +} // namespace LogResponse + +namespace LogQueueRequest { +struct Type; +struct DecodableType; +} // namespace LogQueueRequest + +namespace LogQueueResponse { +struct Type; +struct DecodableType; +} // namespace LogQueueResponse + +namespace StatisticsAvailable { +struct Type; +struct DecodableType; +} // namespace StatisticsAvailable + +} // namespace Commands + namespace Commands { namespace LogNotification { enum class Fields @@ -26492,6 +29306,8 @@ struct Type DataModel::List logPayload; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -26523,6 +29339,8 @@ struct Type uint32_t logId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::ApplianceStatistics::Commands::LogResponse::DecodableType; }; struct DecodableType @@ -26557,6 +29375,8 @@ struct Type DataModel::List logPayload; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -26585,6 +29405,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::ApplianceStatistics::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = Clusters::ApplianceStatistics::Commands::LogQueueResponse::DecodableType; }; struct DecodableType @@ -26614,6 +29436,8 @@ struct Type DataModel::List logIds; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -26645,6 +29469,8 @@ struct Type DataModel::List logIds; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -26709,6 +29535,31 @@ struct TypeInfo } // namespace ApplianceStatistics namespace ElectricalMeasurement { +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace GetProfileInfoResponseCommand { +struct Type; +struct DecodableType; +} // namespace GetProfileInfoResponseCommand + +namespace GetProfileInfoCommand { +struct Type; +struct DecodableType; +} // namespace GetProfileInfoCommand + +namespace GetMeasurementProfileResponseCommand { +struct Type; +struct DecodableType; +} // namespace GetMeasurementProfileResponseCommand + +namespace GetMeasurementProfileCommand { +struct Type; +struct DecodableType; +} // namespace GetMeasurementProfileCommand + +} // namespace Commands + namespace Commands { namespace GetProfileInfoResponseCommand { enum class Fields @@ -26732,6 +29583,8 @@ struct Type DataModel::List listOfAttributes; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -26760,6 +29613,8 @@ struct Type static constexpr ClusterId GetClusterId() { return Clusters::ElectricalMeasurement::Id; } CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -26797,6 +29652,8 @@ struct Type DataModel::List intervals; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -26834,6 +29691,8 @@ struct Type uint8_t numberOfIntervals; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -28285,6 +31144,21 @@ struct TypeInfo } // namespace ElectricalMeasurement namespace Binding { +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace Bind { +struct Type; +struct DecodableType; +} // namespace Bind + +namespace Unbind { +struct Type; +struct DecodableType; +} // namespace Unbind + +} // namespace Commands + namespace Commands { namespace Bind { enum class Fields @@ -28308,6 +31182,8 @@ struct Type chip::ClusterId clusterId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -28345,6 +31221,8 @@ struct Type chip::ClusterId clusterId; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -28501,6 +31379,16 @@ struct TypeInfo } // namespace GroupKeyManagement namespace SampleMfgSpecificCluster { +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace CommandOne { +struct Type; +struct DecodableType; +} // namespace CommandOne + +} // namespace Commands + namespace Commands { namespace CommandOne { enum class Fields @@ -28518,6 +31406,8 @@ struct Type uint8_t argOne; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType @@ -28581,6 +31471,16 @@ struct TypeInfo } // namespace SampleMfgSpecificCluster namespace SampleMfgSpecificCluster2 { +namespace Commands { +// Forward-declarations so we can reference these later. + +namespace CommandTwo { +struct Type; +struct DecodableType; +} // namespace CommandTwo + +} // namespace Commands + namespace Commands { namespace CommandTwo { enum class Fields @@ -28598,6 +31498,8 @@ struct Type uint8_t argOne; CHIP_ERROR Encode(TLV::TLVWriter & writer, TLV::Tag tag) const; + + using ResponseType = DataModel::NullObjectType; }; struct DecodableType diff --git a/zzz_generated/chip-tool/zap-generated/test/Commands.h b/zzz_generated/chip-tool/zap-generated/test/Commands.h index 61c54bab43eb3b..f0b0a209ca674a 100644 --- a/zzz_generated/chip-tool/zap-generated/test/Commands.h +++ b/zzz_generated/chip-tool/zap-generated/test/Commands.h @@ -5753,19 +5753,18 @@ class Test_TC_CC_3_1 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::On::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; - chip::app::Clusters::OnOff::Commands::On::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_0(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_0(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } @@ -5794,24 +5793,23 @@ class Test_TC_CC_3_1 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::MoveToHue::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::MoveToHue::Type; - chip::app::Clusters::ColorControl::Commands::MoveToHue::Type request; + RequestType request; request.hue = 150; request.direction = static_cast(0); request.transitionTime = 100U; request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_2(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } @@ -5823,24 +5821,23 @@ class Test_TC_CC_3_1 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::MoveToHue::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::MoveToHue::Type; - chip::app::Clusters::ColorControl::Commands::MoveToHue::Type request; + RequestType request; request.hue = 200; request.direction = static_cast(1); request.transitionTime = 100U; request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_3(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } @@ -5852,24 +5849,23 @@ class Test_TC_CC_3_1 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::MoveToHue::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::MoveToHue::Type; - chip::app::Clusters::ColorControl::Commands::MoveToHue::Type request; + RequestType request; request.hue = 250; request.direction = static_cast(2); request.transitionTime = 100U; request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_4(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_4(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } @@ -5881,24 +5877,23 @@ class Test_TC_CC_3_1 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::MoveToHue::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::MoveToHue::Type; - chip::app::Clusters::ColorControl::Commands::MoveToHue::Type request; + RequestType request; request.hue = 225; request.direction = static_cast(3); request.transitionTime = 100U; request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_5(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_5(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } @@ -5910,19 +5905,18 @@ class Test_TC_CC_3_1 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::Off::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; - chip::app::Clusters::OnOff::Commands::Off::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_6(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_6(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } @@ -6051,19 +6045,18 @@ class Test_TC_CC_3_2 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::On::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; - chip::app::Clusters::OnOff::Commands::On::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_0(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_0(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } @@ -6092,23 +6085,22 @@ class Test_TC_CC_3_2 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::MoveHue::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::MoveHue::Type; - chip::app::Clusters::ColorControl::Commands::MoveHue::Type request; + RequestType request; request.moveMode = static_cast(1); request.rate = 50; request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_2(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } @@ -6120,23 +6112,22 @@ class Test_TC_CC_3_2 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::MoveHue::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::MoveHue::Type; - chip::app::Clusters::ColorControl::Commands::MoveHue::Type request; + RequestType request; request.moveMode = static_cast(0); request.rate = 50; request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_3(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } @@ -6148,23 +6139,22 @@ class Test_TC_CC_3_2 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::MoveHue::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::MoveHue::Type; - chip::app::Clusters::ColorControl::Commands::MoveHue::Type request; + RequestType request; request.moveMode = static_cast(3); request.rate = 50; request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_4(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_4(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } @@ -6176,23 +6166,22 @@ class Test_TC_CC_3_2 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::MoveHue::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::MoveHue::Type; - chip::app::Clusters::ColorControl::Commands::MoveHue::Type request; + RequestType request; request.moveMode = static_cast(0); request.rate = 50; request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_5(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_5(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } @@ -6204,19 +6193,18 @@ class Test_TC_CC_3_2 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::Off::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; - chip::app::Clusters::OnOff::Commands::Off::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_6(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_6(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } @@ -6337,19 +6325,18 @@ class Test_TC_CC_3_3 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::On::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; - chip::app::Clusters::OnOff::Commands::On::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_0(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_0(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } @@ -6378,24 +6365,23 @@ class Test_TC_CC_3_3 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::StepHue::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::StepHue::Type; - chip::app::Clusters::ColorControl::Commands::StepHue::Type request; + RequestType request; request.stepMode = static_cast(1); request.stepSize = 5; request.transitionTime = 25; request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_2(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } @@ -6407,24 +6393,23 @@ class Test_TC_CC_3_3 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::StepHue::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::StepHue::Type; - chip::app::Clusters::ColorControl::Commands::StepHue::Type request; + RequestType request; request.stepMode = static_cast(3); request.stepSize = 5; request.transitionTime = 25; request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_3(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } @@ -6436,19 +6421,18 @@ class Test_TC_CC_3_3 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::Off::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; - chip::app::Clusters::OnOff::Commands::Off::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_4(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_4(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } @@ -6565,19 +6549,18 @@ class Test_TC_CC_4_1 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::On::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; - chip::app::Clusters::OnOff::Commands::On::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_0(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_0(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } @@ -6606,23 +6589,22 @@ class Test_TC_CC_4_1 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::MoveToSaturation::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::MoveToSaturation::Type; - chip::app::Clusters::ColorControl::Commands::MoveToSaturation::Type request; + RequestType request; request.saturation = 90; request.transitionTime = 10U; request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_2(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } @@ -6634,19 +6616,18 @@ class Test_TC_CC_4_1 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::Off::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; - chip::app::Clusters::OnOff::Commands::Off::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_3(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } @@ -6767,19 +6748,18 @@ class Test_TC_CC_4_2 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::On::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; - chip::app::Clusters::OnOff::Commands::On::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_0(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_0(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } @@ -6808,23 +6788,22 @@ class Test_TC_CC_4_2 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::MoveSaturation::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::MoveSaturation::Type; - chip::app::Clusters::ColorControl::Commands::MoveSaturation::Type request; + RequestType request; request.moveMode = static_cast(1); request.rate = 5; request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_2(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } @@ -6836,23 +6815,22 @@ class Test_TC_CC_4_2 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::MoveSaturation::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::MoveSaturation::Type; - chip::app::Clusters::ColorControl::Commands::MoveSaturation::Type request; + RequestType request; request.moveMode = static_cast(3); request.rate = 5; request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_3(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } @@ -6864,19 +6842,18 @@ class Test_TC_CC_4_2 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::Off::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; - chip::app::Clusters::OnOff::Commands::Off::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_4(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_4(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } @@ -6997,19 +6974,18 @@ class Test_TC_CC_4_3 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::On::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; - chip::app::Clusters::OnOff::Commands::On::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_0(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_0(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } @@ -7038,24 +7014,23 @@ class Test_TC_CC_4_3 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::StepSaturation::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::StepSaturation::Type; - chip::app::Clusters::ColorControl::Commands::StepSaturation::Type request; + RequestType request; request.stepMode = static_cast(1); request.stepSize = 15; request.transitionTime = 10; request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_2(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } @@ -7067,24 +7042,23 @@ class Test_TC_CC_4_3 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::StepSaturation::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::StepSaturation::Type; - chip::app::Clusters::ColorControl::Commands::StepSaturation::Type request; + RequestType request; request.stepMode = static_cast(3); request.stepSize = 20; request.transitionTime = 10; request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_3(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } @@ -7096,19 +7070,18 @@ class Test_TC_CC_4_3 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::Off::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; - chip::app::Clusters::OnOff::Commands::Off::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_4(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_4(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } @@ -7225,19 +7198,18 @@ class Test_TC_CC_4_4 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::On::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; - chip::app::Clusters::OnOff::Commands::On::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_0(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_0(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } @@ -7266,24 +7238,23 @@ class Test_TC_CC_4_4 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::MoveToHueAndSaturation::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::MoveToHueAndSaturation::Type; - chip::app::Clusters::ColorControl::Commands::MoveToHueAndSaturation::Type request; + RequestType request; request.hue = 40; request.saturation = 160; request.transitionTime = 10U; request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_2(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } @@ -7295,19 +7266,18 @@ class Test_TC_CC_4_4 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::Off::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; - chip::app::Clusters::OnOff::Commands::Off::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_3(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } @@ -7424,19 +7394,18 @@ class Test_TC_CC_5_1 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::On::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; - chip::app::Clusters::OnOff::Commands::On::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_0(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_0(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } @@ -7465,24 +7434,23 @@ class Test_TC_CC_5_1 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::MoveToColor::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::MoveToColor::Type; - chip::app::Clusters::ColorControl::Commands::MoveToColor::Type request; + RequestType request; request.colorX = 200U; request.colorY = 300U; request.transitionTime = 20U; request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_2(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } @@ -7494,19 +7462,18 @@ class Test_TC_CC_5_1 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::Off::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; - chip::app::Clusters::OnOff::Commands::Off::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_3(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } @@ -7627,19 +7594,18 @@ class Test_TC_CC_5_2 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::On::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; - chip::app::Clusters::OnOff::Commands::On::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_0(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_0(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } @@ -7668,23 +7634,22 @@ class Test_TC_CC_5_2 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::MoveColor::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::MoveColor::Type; - chip::app::Clusters::ColorControl::Commands::MoveColor::Type request; + RequestType request; request.rateX = 15; request.rateY = 20; request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_2(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } @@ -7696,21 +7661,20 @@ class Test_TC_CC_5_2 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::StopMoveStep::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::StopMoveStep::Type; - chip::app::Clusters::ColorControl::Commands::StopMoveStep::Type request; + RequestType request; request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_3(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } @@ -7722,19 +7686,18 @@ class Test_TC_CC_5_2 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::Off::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; - chip::app::Clusters::OnOff::Commands::Off::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_4(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_4(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } @@ -7851,19 +7814,18 @@ class Test_TC_CC_5_3 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::On::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; - chip::app::Clusters::OnOff::Commands::On::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_0(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_0(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } @@ -7892,24 +7854,23 @@ class Test_TC_CC_5_3 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::StepColor::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::StepColor::Type; - chip::app::Clusters::ColorControl::Commands::StepColor::Type request; + RequestType request; request.stepX = 15; request.stepY = 20; request.transitionTime = 50U; request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_2(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } @@ -7921,19 +7882,18 @@ class Test_TC_CC_5_3 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::Off::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; - chip::app::Clusters::OnOff::Commands::Off::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_3(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } @@ -8050,19 +8010,18 @@ class Test_TC_CC_6_1 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::On::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; - chip::app::Clusters::OnOff::Commands::On::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_0(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_0(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } @@ -8091,23 +8050,22 @@ class Test_TC_CC_6_1 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::MoveToColorTemperature::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::MoveToColorTemperature::Type; - chip::app::Clusters::ColorControl::Commands::MoveToColorTemperature::Type request; + RequestType request; request.colorTemperature = 100U; request.transitionTime = 10U; request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_2(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } @@ -8119,19 +8077,18 @@ class Test_TC_CC_6_1 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::Off::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; - chip::app::Clusters::OnOff::Commands::Off::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_3(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } @@ -8256,19 +8213,18 @@ class Test_TC_CC_6_2 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::On::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; - chip::app::Clusters::OnOff::Commands::On::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_0(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_0(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } @@ -8297,10 +8253,9 @@ class Test_TC_CC_6_2 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::MoveColorTemperature::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::MoveColorTemperature::Type; - chip::app::Clusters::ColorControl::Commands::MoveColorTemperature::Type request; + RequestType request; request.moveMode = static_cast(1); request.rate = 10U; request.colorTemperatureMinimum = 1U; @@ -8308,14 +8263,14 @@ class Test_TC_CC_6_2 : public TestCommand request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_2(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } @@ -8327,10 +8282,9 @@ class Test_TC_CC_6_2 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::MoveColorTemperature::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::MoveColorTemperature::Type; - chip::app::Clusters::ColorControl::Commands::MoveColorTemperature::Type request; + RequestType request; request.moveMode = static_cast(0); request.rate = 10U; request.colorTemperatureMinimum = 1U; @@ -8338,14 +8292,14 @@ class Test_TC_CC_6_2 : public TestCommand request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_3(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } @@ -8357,10 +8311,9 @@ class Test_TC_CC_6_2 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::MoveColorTemperature::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::MoveColorTemperature::Type; - chip::app::Clusters::ColorControl::Commands::MoveColorTemperature::Type request; + RequestType request; request.moveMode = static_cast(3); request.rate = 20U; request.colorTemperatureMinimum = 1U; @@ -8368,14 +8321,14 @@ class Test_TC_CC_6_2 : public TestCommand request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_4(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_4(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } @@ -8387,19 +8340,18 @@ class Test_TC_CC_6_2 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::Off::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; - chip::app::Clusters::OnOff::Commands::Off::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_5(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_5(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } @@ -8520,19 +8472,18 @@ class Test_TC_CC_6_3 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::On::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; - chip::app::Clusters::OnOff::Commands::On::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_0(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_0(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } @@ -8561,10 +8512,9 @@ class Test_TC_CC_6_3 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::StepColorTemperature::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::StepColorTemperature::Type; - chip::app::Clusters::ColorControl::Commands::StepColorTemperature::Type request; + RequestType request; request.stepMode = static_cast(1); request.stepSize = 5U; request.transitionTime = 50U; @@ -8573,14 +8523,14 @@ class Test_TC_CC_6_3 : public TestCommand request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_2(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } @@ -8592,10 +8542,9 @@ class Test_TC_CC_6_3 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::StepColorTemperature::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::StepColorTemperature::Type; - chip::app::Clusters::ColorControl::Commands::StepColorTemperature::Type request; + RequestType request; request.stepMode = static_cast(3); request.stepSize = 5U; request.transitionTime = 50U; @@ -8604,14 +8553,14 @@ class Test_TC_CC_6_3 : public TestCommand request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_3(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } @@ -8623,19 +8572,18 @@ class Test_TC_CC_6_3 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::Off::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; - chip::app::Clusters::OnOff::Commands::Off::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_4(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_4(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } @@ -8767,19 +8715,18 @@ class Test_TC_CC_7_1 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::On::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; - chip::app::Clusters::OnOff::Commands::On::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_0(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_0(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } @@ -8808,24 +8755,23 @@ class Test_TC_CC_7_1 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHue::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHue::Type; - chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHue::Type request; + RequestType request; request.enhancedHue = 1025U; request.direction = static_cast(0); request.transitionTime = 1U; request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_2(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } @@ -8854,19 +8800,18 @@ class Test_TC_CC_7_1 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::Off::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; - chip::app::Clusters::OnOff::Commands::Off::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_4(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_4(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } @@ -8995,19 +8940,18 @@ class Test_TC_CC_7_2 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::On::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; - chip::app::Clusters::OnOff::Commands::On::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_0(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_0(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } @@ -9036,23 +8980,22 @@ class Test_TC_CC_7_2 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::EnhancedMoveHue::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::EnhancedMoveHue::Type; - chip::app::Clusters::ColorControl::Commands::EnhancedMoveHue::Type request; + RequestType request; request.moveMode = static_cast(3); request.rate = 5U; request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_2(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } @@ -9064,23 +9007,22 @@ class Test_TC_CC_7_2 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::EnhancedMoveHue::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::EnhancedMoveHue::Type; - chip::app::Clusters::ColorControl::Commands::EnhancedMoveHue::Type request; + RequestType request; request.moveMode = static_cast(0); request.rate = 0U; request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_3(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } @@ -9092,23 +9034,22 @@ class Test_TC_CC_7_2 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::EnhancedMoveHue::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::EnhancedMoveHue::Type; - chip::app::Clusters::ColorControl::Commands::EnhancedMoveHue::Type request; + RequestType request; request.moveMode = static_cast(1); request.rate = 50U; request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_4(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_4(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } @@ -9120,23 +9061,22 @@ class Test_TC_CC_7_2 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::EnhancedMoveHue::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::EnhancedMoveHue::Type; - chip::app::Clusters::ColorControl::Commands::EnhancedMoveHue::Type request; + RequestType request; request.moveMode = static_cast(0); request.rate = 0U; request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_5(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_5(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } @@ -9148,19 +9088,18 @@ class Test_TC_CC_7_2 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::Off::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; - chip::app::Clusters::OnOff::Commands::Off::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_6(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_6(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } @@ -9281,19 +9220,18 @@ class Test_TC_CC_7_3 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::On::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; - chip::app::Clusters::OnOff::Commands::On::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_0(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_0(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } @@ -9322,24 +9260,23 @@ class Test_TC_CC_7_3 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::EnhancedStepHue::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::EnhancedStepHue::Type; - chip::app::Clusters::ColorControl::Commands::EnhancedStepHue::Type request; + RequestType request; request.stepMode = static_cast(0); request.stepSize = 50U; request.transitionTime = 1U; request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_2(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } @@ -9351,24 +9288,23 @@ class Test_TC_CC_7_3 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::EnhancedStepHue::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::EnhancedStepHue::Type; - chip::app::Clusters::ColorControl::Commands::EnhancedStepHue::Type request; + RequestType request; request.stepMode = static_cast(1); request.stepSize = 75U; request.transitionTime = 1U; request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_3(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } @@ -9380,19 +9316,18 @@ class Test_TC_CC_7_3 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::Off::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; - chip::app::Clusters::OnOff::Commands::Off::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_4(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_4(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } @@ -9509,19 +9444,18 @@ class Test_TC_CC_7_4 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::On::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; - chip::app::Clusters::OnOff::Commands::On::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_0(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_0(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } @@ -9550,24 +9484,23 @@ class Test_TC_CC_7_4 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHueAndSaturation::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHueAndSaturation::Type; - chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHueAndSaturation::Type request; + RequestType request; request.enhancedHue = 1200U; request.saturation = 90; request.transitionTime = 10U; request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_2(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } @@ -9579,19 +9512,18 @@ class Test_TC_CC_7_4 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::Off::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; - chip::app::Clusters::OnOff::Commands::Off::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_3(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } @@ -9832,19 +9764,18 @@ class Test_TC_CC_8_1 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::On::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; - chip::app::Clusters::OnOff::Commands::On::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_0(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_0(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } @@ -9873,10 +9804,9 @@ class Test_TC_CC_8_1 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type request; + RequestType request; request.updateFlags = static_cast>(14); request.action = static_cast(0); request.direction = static_cast(1); @@ -9885,14 +9815,14 @@ class Test_TC_CC_8_1 : public TestCommand request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_2(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } @@ -9972,10 +9902,9 @@ class Test_TC_CC_8_1 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type request; + RequestType request; request.updateFlags = static_cast>(1); request.action = static_cast(1); request.direction = static_cast(0); @@ -9984,14 +9913,14 @@ class Test_TC_CC_8_1 : public TestCommand request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_7(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_7(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } @@ -10020,10 +9949,9 @@ class Test_TC_CC_8_1 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type request; + RequestType request; request.updateFlags = static_cast>(6); request.action = static_cast(0); request.direction = static_cast(0); @@ -10032,14 +9960,14 @@ class Test_TC_CC_8_1 : public TestCommand request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_9(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_9(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } @@ -10085,10 +10013,9 @@ class Test_TC_CC_8_1 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type request; + RequestType request; request.updateFlags = static_cast>(2); request.action = static_cast(0); request.direction = static_cast(1); @@ -10097,14 +10024,14 @@ class Test_TC_CC_8_1 : public TestCommand request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_12(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_12(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_12(uint8_t status) { ThrowFailureResponse(); } @@ -10133,19 +10060,18 @@ class Test_TC_CC_8_1 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::Off::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; - chip::app::Clusters::OnOff::Commands::Off::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_14(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_14(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_14(uint8_t status) { ThrowFailureResponse(); } @@ -10536,19 +10462,18 @@ class Test_TC_CC_9_1 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::On::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; - chip::app::Clusters::OnOff::Commands::On::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_0(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_0(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } @@ -10577,10 +10502,9 @@ class Test_TC_CC_9_1 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type request; + RequestType request; request.updateFlags = static_cast>(1); request.action = static_cast(0); request.direction = static_cast(0); @@ -10589,14 +10513,14 @@ class Test_TC_CC_9_1 : public TestCommand request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_2(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } @@ -10625,10 +10549,9 @@ class Test_TC_CC_9_1 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type request; + RequestType request; request.updateFlags = static_cast>(2); request.action = static_cast(0); request.direction = static_cast(0); @@ -10637,14 +10560,14 @@ class Test_TC_CC_9_1 : public TestCommand request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_4(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_4(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } @@ -10673,10 +10596,9 @@ class Test_TC_CC_9_1 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type request; + RequestType request; request.updateFlags = static_cast>(4); request.action = static_cast(0); request.direction = static_cast(0); @@ -10685,14 +10607,14 @@ class Test_TC_CC_9_1 : public TestCommand request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_6(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_6(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } @@ -10721,10 +10643,9 @@ class Test_TC_CC_9_1 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type request; + RequestType request; request.updateFlags = static_cast>(8); request.action = static_cast(0); request.direction = static_cast(0); @@ -10733,14 +10654,14 @@ class Test_TC_CC_9_1 : public TestCommand request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_8(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_8(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } @@ -10769,10 +10690,9 @@ class Test_TC_CC_9_1 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type request; + RequestType request; request.updateFlags = static_cast>(1); request.action = static_cast(1); request.direction = static_cast(0); @@ -10781,14 +10701,14 @@ class Test_TC_CC_9_1 : public TestCommand request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_10(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_10(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } @@ -10817,10 +10737,9 @@ class Test_TC_CC_9_1 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type request; + RequestType request; request.updateFlags = static_cast>(1); request.action = static_cast(0); request.direction = static_cast(0); @@ -10829,14 +10748,14 @@ class Test_TC_CC_9_1 : public TestCommand request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_12(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_12(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_12(uint8_t status) { ThrowFailureResponse(); } @@ -10865,10 +10784,9 @@ class Test_TC_CC_9_1 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type request; + RequestType request; request.updateFlags = static_cast>(2); request.action = static_cast(0); request.direction = static_cast(1); @@ -10877,14 +10795,14 @@ class Test_TC_CC_9_1 : public TestCommand request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_14(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_14(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_14(uint8_t status) { ThrowFailureResponse(); } @@ -10913,10 +10831,9 @@ class Test_TC_CC_9_1 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type request; + RequestType request; request.updateFlags = static_cast>(1); request.action = static_cast(1); request.direction = static_cast(0); @@ -10925,14 +10842,14 @@ class Test_TC_CC_9_1 : public TestCommand request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_16(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_16(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_16(uint8_t status) { ThrowFailureResponse(); } @@ -10961,10 +10878,9 @@ class Test_TC_CC_9_1 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type request; + RequestType request; request.updateFlags = static_cast>(1); request.action = static_cast(0); request.direction = static_cast(0); @@ -10973,14 +10889,14 @@ class Test_TC_CC_9_1 : public TestCommand request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_18(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_18(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_18(uint8_t status) { ThrowFailureResponse(); } @@ -11009,24 +10925,23 @@ class Test_TC_CC_9_1 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHue::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHue::Type; - chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHue::Type request; + RequestType request; request.enhancedHue = 40960U; request.direction = static_cast(0); request.transitionTime = 0U; request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_20(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_20(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_20(uint8_t status) { ThrowFailureResponse(); } @@ -11057,10 +10972,9 @@ class Test_TC_CC_9_1 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type request; + RequestType request; request.updateFlags = static_cast>(2); request.action = static_cast(0); request.direction = static_cast(0); @@ -11069,14 +10983,14 @@ class Test_TC_CC_9_1 : public TestCommand request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_23(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_23(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_23(uint8_t status) { ThrowFailureResponse(); } @@ -11105,10 +11019,9 @@ class Test_TC_CC_9_1 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type request; + RequestType request; request.updateFlags = static_cast>(1); request.action = static_cast(2); request.direction = static_cast(0); @@ -11117,14 +11030,14 @@ class Test_TC_CC_9_1 : public TestCommand request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_25(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_25(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_25(uint8_t status) { ThrowFailureResponse(); } @@ -11153,10 +11066,9 @@ class Test_TC_CC_9_1 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type request; + RequestType request; request.updateFlags = static_cast>(1); request.action = static_cast(0); request.direction = static_cast(0); @@ -11165,14 +11077,14 @@ class Test_TC_CC_9_1 : public TestCommand request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_27(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_27(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_27(uint8_t status) { ThrowFailureResponse(); } @@ -11201,10 +11113,9 @@ class Test_TC_CC_9_1 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type request; + RequestType request; request.updateFlags = static_cast>(2); request.action = static_cast(0); request.direction = static_cast(1); @@ -11213,14 +11124,14 @@ class Test_TC_CC_9_1 : public TestCommand request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_29(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_29(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_29(uint8_t status) { ThrowFailureResponse(); } @@ -11249,10 +11160,9 @@ class Test_TC_CC_9_1 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type request; + RequestType request; request.updateFlags = static_cast>(1); request.action = static_cast(2); request.direction = static_cast(0); @@ -11261,14 +11171,14 @@ class Test_TC_CC_9_1 : public TestCommand request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_31(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_31(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_31(uint8_t status) { ThrowFailureResponse(); } @@ -11297,10 +11207,9 @@ class Test_TC_CC_9_1 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type request; + RequestType request; request.updateFlags = static_cast>(1); request.action = static_cast(0); request.direction = static_cast(0); @@ -11309,14 +11218,14 @@ class Test_TC_CC_9_1 : public TestCommand request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_33(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_33(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_33(uint8_t status) { ThrowFailureResponse(); } @@ -11345,19 +11254,18 @@ class Test_TC_CC_9_1 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::Off::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; - chip::app::Clusters::OnOff::Commands::Off::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_35(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_35(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_35(uint8_t status) { ThrowFailureResponse(); } @@ -11553,19 +11461,18 @@ class Test_TC_CC_9_2 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::On::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; - chip::app::Clusters::OnOff::Commands::On::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_0(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_0(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } @@ -11594,10 +11501,9 @@ class Test_TC_CC_9_2 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type request; + RequestType request; request.updateFlags = static_cast>(15); request.action = static_cast(0); request.direction = static_cast(0); @@ -11606,14 +11512,14 @@ class Test_TC_CC_9_2 : public TestCommand request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_2(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } @@ -11693,10 +11599,9 @@ class Test_TC_CC_9_2 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type request; + RequestType request; request.updateFlags = static_cast>(1); request.action = static_cast(1); request.direction = static_cast(0); @@ -11705,14 +11610,14 @@ class Test_TC_CC_9_2 : public TestCommand request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_7(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_7(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } @@ -11741,10 +11646,9 @@ class Test_TC_CC_9_2 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type request; + RequestType request; request.updateFlags = static_cast>(2); request.action = static_cast(0); request.direction = static_cast(1); @@ -11753,14 +11657,14 @@ class Test_TC_CC_9_2 : public TestCommand request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_9(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_9(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } @@ -11789,10 +11693,9 @@ class Test_TC_CC_9_2 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type request; + RequestType request; request.updateFlags = static_cast>(1); request.action = static_cast(0); request.direction = static_cast(0); @@ -11801,14 +11704,14 @@ class Test_TC_CC_9_2 : public TestCommand request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_11(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_11(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } @@ -11837,19 +11740,18 @@ class Test_TC_CC_9_2 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::Off::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; - chip::app::Clusters::OnOff::Commands::Off::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_13(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_13(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_13(uint8_t status) { ThrowFailureResponse(); } @@ -12045,19 +11947,18 @@ class Test_TC_CC_9_3 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::On::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; - chip::app::Clusters::OnOff::Commands::On::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_0(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_0(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } @@ -12086,10 +11987,9 @@ class Test_TC_CC_9_3 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type request; + RequestType request; request.updateFlags = static_cast>(15); request.action = static_cast(0); request.direction = static_cast(0); @@ -12098,14 +11998,14 @@ class Test_TC_CC_9_3 : public TestCommand request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_2(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } @@ -12185,10 +12085,9 @@ class Test_TC_CC_9_3 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type request; + RequestType request; request.updateFlags = static_cast>(1); request.action = static_cast(1); request.direction = static_cast(0); @@ -12197,14 +12096,14 @@ class Test_TC_CC_9_3 : public TestCommand request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_7(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_7(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } @@ -12233,10 +12132,9 @@ class Test_TC_CC_9_3 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type request; + RequestType request; request.updateFlags = static_cast>(4); request.action = static_cast(0); request.direction = static_cast(0); @@ -12245,14 +12143,14 @@ class Test_TC_CC_9_3 : public TestCommand request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_9(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_9(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } @@ -12281,10 +12179,9 @@ class Test_TC_CC_9_3 : public TestCommand chip::Controller::ColorControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type; - chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type request; + RequestType request; request.updateFlags = static_cast>(1); request.action = static_cast(0); request.direction = static_cast(0); @@ -12293,14 +12190,14 @@ class Test_TC_CC_9_3 : public TestCommand request.optionsMask = 0; request.optionsOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_11(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_11(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } @@ -12329,19 +12226,18 @@ class Test_TC_CC_9_3 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::Off::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; - chip::app::Clusters::OnOff::Commands::Off::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_13(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_13(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_13(uint8_t status) { ThrowFailureResponse(); } @@ -14080,23 +13976,22 @@ class Test_TC_LVL_2_1 : public TestCommand chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type; - chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type request; + RequestType request; request.level = 64; request.transitionTime = 0U; request.optionMask = 1; request.optionOverride = 1; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } @@ -14127,23 +14022,22 @@ class Test_TC_LVL_2_1 : public TestCommand chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type; - chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type request; + RequestType request; request.level = 128; request.transitionTime = 1U; request.optionMask = 1; request.optionOverride = 1; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_4(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_4(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } @@ -14191,23 +14085,22 @@ class Test_TC_LVL_2_1 : public TestCommand chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type; - chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type request; + RequestType request; request.level = 254; request.transitionTime = 65535U; request.optionMask = 1; request.optionOverride = 1; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_8(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_8(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } @@ -14238,23 +14131,22 @@ class Test_TC_LVL_2_1 : public TestCommand chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type; - chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type request; + RequestType request; request.level = 0; request.transitionTime = 0U; request.optionMask = 1; request.optionOverride = 1; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_11(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_11(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } @@ -14483,23 +14375,22 @@ class Test_TC_LVL_3_1 : public TestCommand chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::LevelControl::Commands::Move::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::LevelControl::Commands::Move::Type; - chip::app::Clusters::LevelControl::Commands::Move::Type request; + RequestType request; request.moveMode = static_cast(0); request.rate = 200; request.optionMask = 1; request.optionOverride = 1; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_2(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } @@ -14547,23 +14438,22 @@ class Test_TC_LVL_3_1 : public TestCommand chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::LevelControl::Commands::Move::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::LevelControl::Commands::Move::Type; - chip::app::Clusters::LevelControl::Commands::Move::Type request; + RequestType request; request.moveMode = static_cast(1); request.rate = 250; request.optionMask = 1; request.optionOverride = 1; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_6(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_6(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } @@ -14627,23 +14517,22 @@ class Test_TC_LVL_3_1 : public TestCommand chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::LevelControl::Commands::Move::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::LevelControl::Commands::Move::Type; - chip::app::Clusters::LevelControl::Commands::Move::Type request; + RequestType request; request.moveMode = static_cast(1); request.rate = 255; request.optionMask = 1; request.optionOverride = 1; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_11(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_11(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_11(uint8_t status) { ThrowFailureResponse(); } @@ -14796,19 +14685,18 @@ class Test_TC_LVL_4_1 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::On::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; - chip::app::Clusters::OnOff::Commands::On::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_0(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_0(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } @@ -14820,24 +14708,23 @@ class Test_TC_LVL_4_1 : public TestCommand chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::LevelControl::Commands::Step::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::LevelControl::Commands::Step::Type; - chip::app::Clusters::LevelControl::Commands::Step::Type request; + RequestType request; request.stepMode = static_cast(0); request.stepSize = 128; request.transitionTime = 20U; request.optionMask = 0; request.optionOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } @@ -14868,24 +14755,23 @@ class Test_TC_LVL_4_1 : public TestCommand chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::LevelControl::Commands::Step::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::LevelControl::Commands::Step::Type; - chip::app::Clusters::LevelControl::Commands::Step::Type request; + RequestType request; request.stepMode = static_cast(1); request.stepSize = 64; request.transitionTime = 20U; request.optionMask = 0; request.optionOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_4(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_4(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } @@ -14916,24 +14802,23 @@ class Test_TC_LVL_4_1 : public TestCommand chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::LevelControl::Commands::Step::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::LevelControl::Commands::Step::Type; - chip::app::Clusters::LevelControl::Commands::Step::Type request; + RequestType request; request.stepMode = static_cast(0); request.stepSize = 64; request.transitionTime = 20U; request.optionMask = 0; request.optionOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_7(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_7(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } @@ -14964,19 +14849,18 @@ class Test_TC_LVL_4_1 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::Off::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; - chip::app::Clusters::OnOff::Commands::Off::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_10(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_10(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } @@ -15064,19 +14948,18 @@ class Test_TC_LVL_5_1 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::On::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; - chip::app::Clusters::OnOff::Commands::On::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_0(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_0(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } @@ -15088,24 +14971,23 @@ class Test_TC_LVL_5_1 : public TestCommand chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::LevelControl::Commands::Step::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::LevelControl::Commands::Step::Type; - chip::app::Clusters::LevelControl::Commands::Step::Type request; + RequestType request; request.stepMode = static_cast(0); request.stepSize = 128; request.transitionTime = 20U; request.optionMask = 0; request.optionOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } @@ -15119,23 +15001,22 @@ class Test_TC_LVL_5_1 : public TestCommand chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::LevelControl::Commands::Move::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::LevelControl::Commands::Move::Type; - chip::app::Clusters::LevelControl::Commands::Move::Type request; + RequestType request; request.moveMode = static_cast(0); request.rate = 1; request.optionMask = 1; request.optionOverride = 1; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_3(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } @@ -15149,21 +15030,20 @@ class Test_TC_LVL_5_1 : public TestCommand chip::Controller::LevelControlClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::LevelControl::Commands::Stop::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::LevelControl::Commands::Stop::Type; - chip::app::Clusters::LevelControl::Commands::Stop::Type request; + RequestType request; request.optionMask = 0; request.optionOverride = 0; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_5(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_5(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } @@ -15175,19 +15055,18 @@ class Test_TC_LVL_5_1 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::Off::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; - chip::app::Clusters::OnOff::Commands::Off::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_6(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_6(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } @@ -15327,19 +15206,18 @@ class Test_TC_MC_2_1 : public TestCommand chip::Controller::LowPowerClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::LowPower::Commands::Sleep::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::LowPower::Commands::Sleep::Type; - chip::app::Clusters::LowPower::Commands::Sleep::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_0(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_0(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } @@ -17228,19 +17106,18 @@ class Test_TC_OO_2_2 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::Off::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; - chip::app::Clusters::OnOff::Commands::Off::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_0(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_0(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } @@ -17269,19 +17146,18 @@ class Test_TC_OO_2_2 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::On::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; - chip::app::Clusters::OnOff::Commands::On::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_2(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } @@ -17310,19 +17186,18 @@ class Test_TC_OO_2_2 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::Off::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; - chip::app::Clusters::OnOff::Commands::Off::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_4(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_4(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } @@ -17351,19 +17226,18 @@ class Test_TC_OO_2_2 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::Toggle::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::Toggle::Type; - chip::app::Clusters::OnOff::Commands::Toggle::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_6(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_6(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } @@ -17392,19 +17266,18 @@ class Test_TC_OO_2_2 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::Toggle::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::Toggle::Type; - chip::app::Clusters::OnOff::Commands::Toggle::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_8(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_8(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } @@ -17433,19 +17306,18 @@ class Test_TC_OO_2_2 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::On::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; - chip::app::Clusters::OnOff::Commands::On::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_10(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_10(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } @@ -17474,19 +17346,18 @@ class Test_TC_OO_2_2 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::Off::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; - chip::app::Clusters::OnOff::Commands::Off::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_12(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_12(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_12(uint8_t status) { ThrowFailureResponse(); } @@ -18077,19 +17948,18 @@ class Test_TC_OO_2_3 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::On::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; - chip::app::Clusters::OnOff::Commands::On::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_0(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_0(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } @@ -18137,19 +18007,18 @@ class Test_TC_OO_2_3 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::On::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; - chip::app::Clusters::OnOff::Commands::On::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_4(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_4(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } @@ -18197,19 +18066,18 @@ class Test_TC_OO_2_3 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::On::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; - chip::app::Clusters::OnOff::Commands::On::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_8(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_8(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } @@ -18291,19 +18159,18 @@ class Test_TC_OO_2_3 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::On::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; - chip::app::Clusters::OnOff::Commands::On::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_14(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_14(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_14(uint8_t status) { ThrowFailureResponse(); } @@ -18366,19 +18233,18 @@ class Test_TC_OO_2_3 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::Off::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; - chip::app::Clusters::OnOff::Commands::Off::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_18(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_18(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_18(uint8_t status) { ThrowFailureResponse(); } @@ -18475,19 +18341,18 @@ class Test_TC_OO_2_3 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::On::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; - chip::app::Clusters::OnOff::Commands::On::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_24(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_24(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_24(uint8_t status) { ThrowFailureResponse(); } @@ -18533,19 +18398,18 @@ class Test_TC_OO_2_3 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::Off::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; - chip::app::Clusters::OnOff::Commands::Off::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_27(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_27(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_27(uint8_t status) { ThrowFailureResponse(); } @@ -18625,19 +18489,18 @@ class Test_TC_OO_2_3 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::On::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; - chip::app::Clusters::OnOff::Commands::On::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_32(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_32(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_32(uint8_t status) { ThrowFailureResponse(); } @@ -18700,19 +18563,18 @@ class Test_TC_OO_2_3 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::Off::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; - chip::app::Clusters::OnOff::Commands::Off::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_36(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_36(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_36(uint8_t status) { ThrowFailureResponse(); } @@ -18860,19 +18722,18 @@ class Test_TC_OO_2_3 : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::Off::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; - chip::app::Clusters::OnOff::Commands::Off::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_45(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_45(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_45(uint8_t status) { ThrowFailureResponse(); } @@ -24515,19 +24376,18 @@ class Test_TC_WNCV_3_1 : public TestCommand chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::WindowCovering::Commands::DownOrClose::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::WindowCovering::Commands::DownOrClose::Type; - chip::app::Clusters::WindowCovering::Commands::DownOrClose::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_0(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_0(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } @@ -24539,19 +24399,18 @@ class Test_TC_WNCV_3_1 : public TestCommand chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::WindowCovering::Commands::UpOrOpen::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::WindowCovering::Commands::UpOrOpen::Type; - chip::app::Clusters::WindowCovering::Commands::UpOrOpen::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } @@ -24650,19 +24509,18 @@ class Test_TC_WNCV_3_2 : public TestCommand chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::WindowCovering::Commands::UpOrOpen::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::WindowCovering::Commands::UpOrOpen::Type; - chip::app::Clusters::WindowCovering::Commands::UpOrOpen::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_0(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_0(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } @@ -24674,19 +24532,18 @@ class Test_TC_WNCV_3_2 : public TestCommand chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::WindowCovering::Commands::DownOrClose::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::WindowCovering::Commands::DownOrClose::Type; - chip::app::Clusters::WindowCovering::Commands::DownOrClose::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } @@ -24785,19 +24642,18 @@ class Test_TC_WNCV_3_3 : public TestCommand chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::WindowCovering::Commands::UpOrOpen::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::WindowCovering::Commands::UpOrOpen::Type; - chip::app::Clusters::WindowCovering::Commands::UpOrOpen::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_0(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_0(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } @@ -24809,19 +24665,18 @@ class Test_TC_WNCV_3_3 : public TestCommand chip::Controller::WindowCoveringClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::WindowCovering::Commands::StopMotion::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::WindowCovering::Commands::StopMotion::Type; - chip::app::Clusters::WindowCovering::Commands::StopMotion::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } @@ -24945,21 +24800,20 @@ class TV_TargetNavigatorCluster : public TestCommand chip::Controller::TargetNavigatorClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::TargetNavigator::Commands::NavigateTarget::Type; - using responseType = chip::app::Clusters::TargetNavigator::Commands::NavigateTargetResponse::DecodableType; + using RequestType = chip::app::Clusters::TargetNavigator::Commands::NavigateTarget::Type; - chip::app::Clusters::TargetNavigator::Commands::NavigateTarget::Type request; + RequestType request; request.target = 1; request.data = chip::Span("1", strlen("1")); - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_1(data.status, data.data); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } @@ -25076,20 +24930,19 @@ class TV_AudioOutputCluster : public TestCommand chip::Controller::AudioOutputClusterTest cluster; cluster.Associate(mDevice, 2); - using requestType = chip::app::Clusters::AudioOutput::Commands::SelectOutput::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::AudioOutput::Commands::SelectOutput::Type; - chip::app::Clusters::AudioOutput::Commands::SelectOutput::Type request; + RequestType request; request.index = 1; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } @@ -25101,21 +24954,20 @@ class TV_AudioOutputCluster : public TestCommand chip::Controller::AudioOutputClusterTest cluster; cluster.Associate(mDevice, 2); - using requestType = chip::app::Clusters::AudioOutput::Commands::RenameOutput::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::AudioOutput::Commands::RenameOutput::Type; - chip::app::Clusters::AudioOutput::Commands::RenameOutput::Type request; + RequestType request; request.index = 1; request.name = chip::Span("exampleName", strlen("exampleName")); - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_2(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } @@ -25243,22 +25095,21 @@ class TV_ApplicationLauncherCluster : public TestCommand chip::Controller::ApplicationLauncherClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ApplicationLauncher::Commands::LaunchApp::Type; - using responseType = chip::app::Clusters::ApplicationLauncher::Commands::LaunchAppResponse::DecodableType; + using RequestType = chip::app::Clusters::ApplicationLauncher::Commands::LaunchApp::Type; - chip::app::Clusters::ApplicationLauncher::Commands::LaunchApp::Type request; + RequestType request; request.data = chip::Span("exampleData", strlen("exampleData")); request.catalogVendorId = 1U; request.applicationId = chip::Span("appId", strlen("appId")); - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_1(data.status, data.data); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } @@ -25360,20 +25211,19 @@ class TV_KeypadInputCluster : public TestCommand chip::Controller::KeypadInputClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::KeypadInput::Commands::SendKey::Type; - using responseType = chip::app::Clusters::KeypadInput::Commands::SendKeyResponse::DecodableType; + using RequestType = chip::app::Clusters::KeypadInput::Commands::SendKey::Type; - chip::app::Clusters::KeypadInput::Commands::SendKey::Type request; + RequestType request; request.keyCode = static_cast(3); - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_0(data.status); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_0(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } @@ -25441,20 +25291,19 @@ class TV_AccountLoginCluster : public TestCommand chip::Controller::AccountLoginClusterTest cluster; cluster.Associate(mDevice, 3); - using requestType = chip::app::Clusters::AccountLogin::Commands::GetSetupPIN::Type; - using responseType = chip::app::Clusters::AccountLogin::Commands::GetSetupPINResponse::DecodableType; + using RequestType = chip::app::Clusters::AccountLogin::Commands::GetSetupPIN::Type; - chip::app::Clusters::AccountLogin::Commands::GetSetupPIN::Type request; + RequestType request; request.tempAccountIdentifier = chip::Span("asdf", strlen("asdf")); - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_0(data.setupPIN); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_0(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } @@ -25466,21 +25315,20 @@ class TV_AccountLoginCluster : public TestCommand chip::Controller::AccountLoginClusterTest cluster; cluster.Associate(mDevice, 3); - using requestType = chip::app::Clusters::AccountLogin::Commands::Login::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::AccountLogin::Commands::Login::Type; - chip::app::Clusters::AccountLogin::Commands::Login::Type request; + RequestType request; request.tempAccountIdentifier = chip::Span("asdf", strlen("asdf")); request.setupPIN = chip::Span("tempPin123", strlen("tempPin123")); - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } @@ -25665,20 +25513,19 @@ class TV_ApplicationBasicCluster : public TestCommand chip::Controller::ApplicationBasicClusterTest cluster; cluster.Associate(mDevice, 3); - using requestType = chip::app::Clusters::ApplicationBasic::Commands::ChangeStatus::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ApplicationBasic::Commands::ChangeStatus::Type; - chip::app::Clusters::ApplicationBasic::Commands::ChangeStatus::Type request; + RequestType request; request.status = static_cast(1); - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_0(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_0(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } @@ -25833,19 +25680,18 @@ class TV_MediaPlaybackCluster : public TestCommand chip::Controller::MediaPlaybackClusterTest cluster; cluster.Associate(mDevice, 3); - using requestType = chip::app::Clusters::MediaPlayback::Commands::MediaPlay::Type; - using responseType = chip::app::Clusters::MediaPlayback::Commands::MediaPlayResponse::DecodableType; + using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaPlay::Type; - chip::app::Clusters::MediaPlayback::Commands::MediaPlay::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_0(data.mediaPlaybackStatus); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_0(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } @@ -25861,19 +25707,18 @@ class TV_MediaPlaybackCluster : public TestCommand chip::Controller::MediaPlaybackClusterTest cluster; cluster.Associate(mDevice, 3); - using requestType = chip::app::Clusters::MediaPlayback::Commands::MediaPause::Type; - using responseType = chip::app::Clusters::MediaPlayback::Commands::MediaPauseResponse::DecodableType; + using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaPause::Type; - chip::app::Clusters::MediaPlayback::Commands::MediaPause::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_1(data.mediaPlaybackStatus); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } @@ -25889,19 +25734,18 @@ class TV_MediaPlaybackCluster : public TestCommand chip::Controller::MediaPlaybackClusterTest cluster; cluster.Associate(mDevice, 3); - using requestType = chip::app::Clusters::MediaPlayback::Commands::MediaStop::Type; - using responseType = chip::app::Clusters::MediaPlayback::Commands::MediaStopResponse::DecodableType; + using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaStop::Type; - chip::app::Clusters::MediaPlayback::Commands::MediaStop::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_2(data.mediaPlaybackStatus); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } @@ -25917,19 +25761,18 @@ class TV_MediaPlaybackCluster : public TestCommand chip::Controller::MediaPlaybackClusterTest cluster; cluster.Associate(mDevice, 3); - using requestType = chip::app::Clusters::MediaPlayback::Commands::MediaStartOver::Type; - using responseType = chip::app::Clusters::MediaPlayback::Commands::MediaStartOverResponse::DecodableType; + using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaStartOver::Type; - chip::app::Clusters::MediaPlayback::Commands::MediaStartOver::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_3(data.mediaPlaybackStatus); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_3(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } @@ -25945,19 +25788,18 @@ class TV_MediaPlaybackCluster : public TestCommand chip::Controller::MediaPlaybackClusterTest cluster; cluster.Associate(mDevice, 3); - using requestType = chip::app::Clusters::MediaPlayback::Commands::MediaPrevious::Type; - using responseType = chip::app::Clusters::MediaPlayback::Commands::MediaPreviousResponse::DecodableType; + using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaPrevious::Type; - chip::app::Clusters::MediaPlayback::Commands::MediaPrevious::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_4(data.mediaPlaybackStatus); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_4(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } @@ -25973,19 +25815,18 @@ class TV_MediaPlaybackCluster : public TestCommand chip::Controller::MediaPlaybackClusterTest cluster; cluster.Associate(mDevice, 3); - using requestType = chip::app::Clusters::MediaPlayback::Commands::MediaNext::Type; - using responseType = chip::app::Clusters::MediaPlayback::Commands::MediaNextResponse::DecodableType; + using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaNext::Type; - chip::app::Clusters::MediaPlayback::Commands::MediaNext::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_5(data.mediaPlaybackStatus); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_5(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } @@ -26001,19 +25842,18 @@ class TV_MediaPlaybackCluster : public TestCommand chip::Controller::MediaPlaybackClusterTest cluster; cluster.Associate(mDevice, 3); - using requestType = chip::app::Clusters::MediaPlayback::Commands::MediaRewind::Type; - using responseType = chip::app::Clusters::MediaPlayback::Commands::MediaRewindResponse::DecodableType; + using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaRewind::Type; - chip::app::Clusters::MediaPlayback::Commands::MediaRewind::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_6(data.mediaPlaybackStatus); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_6(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } @@ -26029,19 +25869,18 @@ class TV_MediaPlaybackCluster : public TestCommand chip::Controller::MediaPlaybackClusterTest cluster; cluster.Associate(mDevice, 3); - using requestType = chip::app::Clusters::MediaPlayback::Commands::MediaFastForward::Type; - using responseType = chip::app::Clusters::MediaPlayback::Commands::MediaFastForwardResponse::DecodableType; + using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaFastForward::Type; - chip::app::Clusters::MediaPlayback::Commands::MediaFastForward::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_7(data.mediaPlaybackStatus); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_7(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } @@ -26057,20 +25896,19 @@ class TV_MediaPlaybackCluster : public TestCommand chip::Controller::MediaPlaybackClusterTest cluster; cluster.Associate(mDevice, 3); - using requestType = chip::app::Clusters::MediaPlayback::Commands::MediaSkipForward::Type; - using responseType = chip::app::Clusters::MediaPlayback::Commands::MediaSkipForwardResponse::DecodableType; + using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaSkipForward::Type; - chip::app::Clusters::MediaPlayback::Commands::MediaSkipForward::Type request; + RequestType request; request.deltaPositionMilliseconds = 100ULL; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_8(data.mediaPlaybackStatus); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_8(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } @@ -26086,20 +25924,19 @@ class TV_MediaPlaybackCluster : public TestCommand chip::Controller::MediaPlaybackClusterTest cluster; cluster.Associate(mDevice, 3); - using requestType = chip::app::Clusters::MediaPlayback::Commands::MediaSkipBackward::Type; - using responseType = chip::app::Clusters::MediaPlayback::Commands::MediaSkipBackwardResponse::DecodableType; + using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaSkipBackward::Type; - chip::app::Clusters::MediaPlayback::Commands::MediaSkipBackward::Type request; + RequestType request; request.deltaPositionMilliseconds = 100ULL; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_9(data.mediaPlaybackStatus); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_9(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } @@ -26115,20 +25952,19 @@ class TV_MediaPlaybackCluster : public TestCommand chip::Controller::MediaPlaybackClusterTest cluster; cluster.Associate(mDevice, 3); - using requestType = chip::app::Clusters::MediaPlayback::Commands::MediaSeek::Type; - using responseType = chip::app::Clusters::MediaPlayback::Commands::MediaSeekResponse::DecodableType; + using RequestType = chip::app::Clusters::MediaPlayback::Commands::MediaSeek::Type; - chip::app::Clusters::MediaPlayback::Commands::MediaSeek::Type request; + RequestType request; request.position = 100ULL; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_10(data.mediaPlaybackStatus); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_10(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } @@ -26249,21 +26085,20 @@ class TV_TvChannelCluster : public TestCommand chip::Controller::TvChannelClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::TvChannel::Commands::ChangeChannelByNumber::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::TvChannel::Commands::ChangeChannelByNumber::Type; - chip::app::Clusters::TvChannel::Commands::ChangeChannelByNumber::Type request; + RequestType request; request.majorNumber = 1U; request.minorNumber = 2U; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } @@ -26275,20 +26110,19 @@ class TV_TvChannelCluster : public TestCommand chip::Controller::TvChannelClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::TvChannel::Commands::SkipChannel::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::TvChannel::Commands::SkipChannel::Type; - chip::app::Clusters::TvChannel::Commands::SkipChannel::Type request; + RequestType request; request.count = 1U; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_2(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } @@ -26352,19 +26186,18 @@ class TV_LowPowerCluster : public TestCommand chip::Controller::LowPowerClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::LowPower::Commands::Sleep::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::LowPower::Commands::Sleep::Type; - chip::app::Clusters::LowPower::Commands::Sleep::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_0(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_0(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } @@ -26501,20 +26334,19 @@ class TV_MediaInputCluster : public TestCommand chip::Controller::MediaInputClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::MediaInput::Commands::SelectInput::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::MediaInput::Commands::SelectInput::Type; - chip::app::Clusters::MediaInput::Commands::SelectInput::Type request; + RequestType request; request.index = 1; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } @@ -26543,19 +26375,18 @@ class TV_MediaInputCluster : public TestCommand chip::Controller::MediaInputClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::MediaInput::Commands::HideInputStatus::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::MediaInput::Commands::HideInputStatus::Type; - chip::app::Clusters::MediaInput::Commands::HideInputStatus::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_3(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } @@ -26567,19 +26398,18 @@ class TV_MediaInputCluster : public TestCommand chip::Controller::MediaInputClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::MediaInput::Commands::ShowInputStatus::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::MediaInput::Commands::ShowInputStatus::Type; - chip::app::Clusters::MediaInput::Commands::ShowInputStatus::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_4(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_4(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } @@ -26591,21 +26421,20 @@ class TV_MediaInputCluster : public TestCommand chip::Controller::MediaInputClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::MediaInput::Commands::RenameInput::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::MediaInput::Commands::RenameInput::Type; - chip::app::Clusters::MediaInput::Commands::RenameInput::Type request; + RequestType request; request.index = 1; request.name = chip::Span("newName", strlen("newName")); - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_5(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_5(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } @@ -28223,19 +28052,18 @@ class TestCluster : public TestCommand chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::TestCluster::Commands::Test::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::TestCluster::Commands::Test::Type; - chip::app::Clusters::TestCluster::Commands::Test::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_0(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_0(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } @@ -28247,19 +28075,18 @@ class TestCluster : public TestCommand chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::TestCluster::Commands::TestNotHandled::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::TestCluster::Commands::TestNotHandled::Type; - chip::app::Clusters::TestCluster::Commands::TestNotHandled::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_1(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_1(uint8_t status) { NextTest(); } @@ -28271,19 +28098,18 @@ class TestCluster : public TestCommand chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::TestCluster::Commands::TestSpecific::Type; - using responseType = chip::app::Clusters::TestCluster::Commands::TestSpecificResponse::DecodableType; + using RequestType = chip::app::Clusters::TestCluster::Commands::TestSpecific::Type; - chip::app::Clusters::TestCluster::Commands::TestSpecific::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_2(data.returnValue); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } @@ -28299,21 +28125,20 @@ class TestCluster : public TestCommand chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::TestCluster::Commands::TestAddArguments::Type; - using responseType = chip::app::Clusters::TestCluster::Commands::TestAddArgumentsResponse::DecodableType; + using RequestType = chip::app::Clusters::TestCluster::Commands::TestAddArguments::Type; - chip::app::Clusters::TestCluster::Commands::TestAddArguments::Type request; + RequestType request; request.arg1 = 3; request.arg2 = 17; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_3(data.returnValue); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_3(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } @@ -28329,21 +28154,20 @@ class TestCluster : public TestCommand chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::TestCluster::Commands::TestAddArguments::Type; - using responseType = chip::app::Clusters::TestCluster::Commands::TestAddArgumentsResponse::DecodableType; + using RequestType = chip::app::Clusters::TestCluster::Commands::TestAddArguments::Type; - chip::app::Clusters::TestCluster::Commands::TestAddArguments::Type request; + RequestType request; request.arg1 = 250; request.arg2 = 6; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_4(data.returnValue); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_4(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_4(uint8_t status) { NextTest(); } @@ -30339,19 +30163,18 @@ class TestCluster : public TestCommand chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, 200); - using requestType = chip::app::Clusters::TestCluster::Commands::Test::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::TestCluster::Commands::Test::Type; - chip::app::Clusters::TestCluster::Commands::Test::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_121(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_121(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_121(uint8_t status) { NextTest(); } @@ -30429,21 +30252,20 @@ class TestCluster : public TestCommand chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::TestCluster::Commands::TestEnumsRequest::Type; - using responseType = chip::app::Clusters::TestCluster::Commands::TestEnumsResponse::DecodableType; + using RequestType = chip::app::Clusters::TestCluster::Commands::TestEnumsRequest::Type; - chip::app::Clusters::TestCluster::Commands::TestEnumsRequest::Type request; + RequestType request; request.arg1 = static_cast(20003); request.arg2 = static_cast(101); - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_126(data.arg1, data.arg2); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_126(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_126(uint8_t status) { ThrowFailureResponse(); } @@ -30557,10 +30379,9 @@ class TestClusterComplexTypes : public TestCommand chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::TestCluster::Commands::TestStructArgumentRequest::Type; - using responseType = chip::app::Clusters::TestCluster::Commands::BooleanResponse::DecodableType; + using RequestType = chip::app::Clusters::TestCluster::Commands::TestStructArgumentRequest::Type; - chip::app::Clusters::TestCluster::Commands::TestStructArgumentRequest::Type request; + RequestType request; request.arg1.a = 0; request.arg1.b = true; @@ -30569,14 +30390,14 @@ class TestClusterComplexTypes : public TestCommand request.arg1.e = chip::Span("char_string", strlen("char_string")); request.arg1.f = static_cast>(1); - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_0(data.value); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_0(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } @@ -30592,10 +30413,9 @@ class TestClusterComplexTypes : public TestCommand chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::TestCluster::Commands::TestStructArgumentRequest::Type; - using responseType = chip::app::Clusters::TestCluster::Commands::BooleanResponse::DecodableType; + using RequestType = chip::app::Clusters::TestCluster::Commands::TestStructArgumentRequest::Type; - chip::app::Clusters::TestCluster::Commands::TestStructArgumentRequest::Type request; + RequestType request; request.arg1.a = 0; request.arg1.b = false; @@ -30604,14 +30424,14 @@ class TestClusterComplexTypes : public TestCommand request.arg1.e = chip::Span("char_string", strlen("char_string")); request.arg1.f = static_cast>(1); - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_1(data.value); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_1(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_1(uint8_t status) { ThrowFailureResponse(); } @@ -30627,10 +30447,9 @@ class TestClusterComplexTypes : public TestCommand chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::TestCluster::Commands::TestListInt8UArgumentRequest::Type; - using responseType = chip::app::Clusters::TestCluster::Commands::BooleanResponse::DecodableType; + using RequestType = chip::app::Clusters::TestCluster::Commands::TestListInt8UArgumentRequest::Type; - chip::app::Clusters::TestCluster::Commands::TestListInt8UArgumentRequest::Type request; + RequestType request; uint8_t arg1List[9]; arg1List[0] = 1; @@ -30644,14 +30463,14 @@ class TestClusterComplexTypes : public TestCommand arg1List[8] = 9; request.arg1 = arg1List; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_2(data.value); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_2(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_2(uint8_t status) { ThrowFailureResponse(); } @@ -30667,10 +30486,9 @@ class TestClusterComplexTypes : public TestCommand chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::TestCluster::Commands::TestListInt8UArgumentRequest::Type; - using responseType = chip::app::Clusters::TestCluster::Commands::BooleanResponse::DecodableType; + using RequestType = chip::app::Clusters::TestCluster::Commands::TestListInt8UArgumentRequest::Type; - chip::app::Clusters::TestCluster::Commands::TestListInt8UArgumentRequest::Type request; + RequestType request; uint8_t arg1List[10]; arg1List[0] = 1; @@ -30685,14 +30503,14 @@ class TestClusterComplexTypes : public TestCommand arg1List[9] = 0; request.arg1 = arg1List; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_3(data.value); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_3(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } @@ -30708,10 +30526,9 @@ class TestClusterComplexTypes : public TestCommand chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::TestCluster::Commands::TestListInt8UReverseRequest::Type; - using responseType = chip::app::Clusters::TestCluster::Commands::TestListInt8UReverseResponse::DecodableType; + using RequestType = chip::app::Clusters::TestCluster::Commands::TestListInt8UReverseRequest::Type; - chip::app::Clusters::TestCluster::Commands::TestListInt8UReverseRequest::Type request; + RequestType request; uint8_t arg1List[9]; arg1List[0] = 1; @@ -30725,14 +30542,14 @@ class TestClusterComplexTypes : public TestCommand arg1List[8] = 9; request.arg1 = arg1List; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_4(data.arg1); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_4(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_4(uint8_t status) { ThrowFailureResponse(); } @@ -30767,21 +30584,20 @@ class TestClusterComplexTypes : public TestCommand chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::TestCluster::Commands::TestListInt8UReverseRequest::Type; - using responseType = chip::app::Clusters::TestCluster::Commands::TestListInt8UReverseResponse::DecodableType; + using RequestType = chip::app::Clusters::TestCluster::Commands::TestListInt8UReverseRequest::Type; - chip::app::Clusters::TestCluster::Commands::TestListInt8UReverseRequest::Type request; + RequestType request; request.arg1 = chip::app::DataModel::List(); - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_5(data.arg1); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_5(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } @@ -30798,10 +30614,9 @@ class TestClusterComplexTypes : public TestCommand chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::TestCluster::Commands::TestListStructArgumentRequest::Type; - using responseType = chip::app::Clusters::TestCluster::Commands::BooleanResponse::DecodableType; + using RequestType = chip::app::Clusters::TestCluster::Commands::TestListStructArgumentRequest::Type; - chip::app::Clusters::TestCluster::Commands::TestListStructArgumentRequest::Type request; + RequestType request; chip::app::Clusters::TestCluster::Structs::SimpleStruct::Type arg1List[2]; @@ -30821,14 +30636,14 @@ class TestClusterComplexTypes : public TestCommand request.arg1 = arg1List; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_6(data.value); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_6(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_6(uint8_t status) { ThrowFailureResponse(); } @@ -30844,10 +30659,9 @@ class TestClusterComplexTypes : public TestCommand chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::TestCluster::Commands::TestListStructArgumentRequest::Type; - using responseType = chip::app::Clusters::TestCluster::Commands::BooleanResponse::DecodableType; + using RequestType = chip::app::Clusters::TestCluster::Commands::TestListStructArgumentRequest::Type; - chip::app::Clusters::TestCluster::Commands::TestListStructArgumentRequest::Type request; + RequestType request; chip::app::Clusters::TestCluster::Structs::SimpleStruct::Type arg1List[2]; @@ -30867,14 +30681,14 @@ class TestClusterComplexTypes : public TestCommand request.arg1 = arg1List; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_7(data.value); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_7(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_7(uint8_t status) { ThrowFailureResponse(); } @@ -30890,13 +30704,12 @@ class TestClusterComplexTypes : public TestCommand chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::TestCluster::Commands::TestNullableOptionalRequest::Type; - using responseType = chip::app::Clusters::TestCluster::Commands::TestNullableOptionalResponse::DecodableType; + using RequestType = chip::app::Clusters::TestCluster::Commands::TestNullableOptionalRequest::Type; - chip::app::Clusters::TestCluster::Commands::TestNullableOptionalRequest::Type request; + RequestType request; request.arg1.Emplace().SetNonNull() = 5; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context)) ->OnSuccessResponse_8(data.wasPresent, data.wasNull, data.value, data.originalValue); }; @@ -30904,7 +30717,7 @@ class TestClusterComplexTypes : public TestCommand auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_8(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_8(uint8_t status) { ThrowFailureResponse(); } @@ -30931,12 +30744,11 @@ class TestClusterComplexTypes : public TestCommand chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::TestCluster::Commands::TestNullableOptionalRequest::Type; - using responseType = chip::app::Clusters::TestCluster::Commands::TestNullableOptionalResponse::DecodableType; + using RequestType = chip::app::Clusters::TestCluster::Commands::TestNullableOptionalRequest::Type; - chip::app::Clusters::TestCluster::Commands::TestNullableOptionalRequest::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context)) ->OnSuccessResponse_9(data.wasPresent, data.wasNull, data.value, data.originalValue); }; @@ -30944,7 +30756,7 @@ class TestClusterComplexTypes : public TestCommand auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_9(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_9(uint8_t status) { ThrowFailureResponse(); } @@ -30962,13 +30774,12 @@ class TestClusterComplexTypes : public TestCommand chip::Controller::TestClusterClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::TestCluster::Commands::TestNullableOptionalRequest::Type; - using responseType = chip::app::Clusters::TestCluster::Commands::TestNullableOptionalResponse::DecodableType; + using RequestType = chip::app::Clusters::TestCluster::Commands::TestNullableOptionalRequest::Type; - chip::app::Clusters::TestCluster::Commands::TestNullableOptionalRequest::Type request; + RequestType request; request.arg1.Emplace().SetNull(); - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context)) ->OnSuccessResponse_10(data.wasPresent, data.wasNull, data.value, data.originalValue); }; @@ -30976,7 +30787,7 @@ class TestClusterComplexTypes : public TestCommand auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_10(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_10(uint8_t status) { ThrowFailureResponse(); } @@ -31713,20 +31524,19 @@ class TestIdentifyCluster : public TestCommand chip::Controller::IdentifyClusterTest cluster; cluster.Associate(mDevice, 0); - using requestType = chip::app::Clusters::Identify::Commands::Identify::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::Identify::Commands::Identify::Type; - chip::app::Clusters::Identify::Commands::Identify::Type request; + RequestType request; request.identifyTime = 0U; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_0(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_0(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } @@ -32125,20 +31935,19 @@ class TestModeSelectCluster : public TestCommand chip::Controller::ModeSelectClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ModeSelect::Commands::ChangeToMode::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ModeSelect::Commands::ChangeToMode::Type; - chip::app::Clusters::ModeSelect::Commands::ChangeToMode::Type request; + RequestType request; request.newMode = 4; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_5(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_5(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } @@ -32167,20 +31976,19 @@ class TestModeSelectCluster : public TestCommand chip::Controller::ModeSelectClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::ModeSelect::Commands::ChangeToMode::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::ModeSelect::Commands::ChangeToMode::Type; - chip::app::Clusters::ModeSelect::Commands::ChangeToMode::Type request; + RequestType request; request.newMode = 2; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_7(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_7(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_7(uint8_t status) { NextTest(); } @@ -32473,19 +32281,18 @@ class TestSubscribe_OnOff : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::Off::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; - chip::app::Clusters::OnOff::Commands::Off::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_0(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_0(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_0(uint8_t status) { ThrowFailureResponse(); } @@ -32540,19 +32347,18 @@ class TestSubscribe_OnOff : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::On::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::On::Type; - chip::app::Clusters::OnOff::Commands::On::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_3(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_3(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_3(uint8_t status) { ThrowFailureResponse(); } @@ -32583,19 +32389,18 @@ class TestSubscribe_OnOff : public TestCommand chip::Controller::OnOffClusterTest cluster; cluster.Associate(mDevice, 1); - using requestType = chip::app::Clusters::OnOff::Commands::Off::Type; - using responseType = chip::app::DataModel::NullObjectType; + using RequestType = chip::app::Clusters::OnOff::Commands::Off::Type; - chip::app::Clusters::OnOff::Commands::Off::Type request; + RequestType request; - auto success = [](void * context, const responseType & data) { + auto success = [](void * context, const typename RequestType::ResponseType & data) { (static_cast(context))->OnSuccessResponse_5(); }; auto failure = [](void * context, EmberAfStatus status) { (static_cast(context))->OnFailureResponse_5(status); }; - return cluster.InvokeCommand(request, this, success, failure); + return cluster.InvokeCommand(request, this, success, failure); } void OnFailureResponse_5(uint8_t status) { ThrowFailureResponse(); } diff --git a/zzz_generated/controller-clusters/zap-generated/CHIPClustersInvoke.cpp b/zzz_generated/controller-clusters/zap-generated/CHIPClustersInvoke.cpp index d00d188fe702a0..9f908fa20b91e8 100644 --- a/zzz_generated/controller-clusters/zap-generated/CHIPClustersInvoke.cpp +++ b/zzz_generated/controller-clusters/zap-generated/CHIPClustersInvoke.cpp @@ -30,1004 +30,939 @@ using namespace Encoding::LittleEndian; namespace Controller { -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::AccountLogin::Commands::GetSetupPIN::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::AccountLogin::Commands::Login::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); template CHIP_ERROR -ClusterBase::InvokeCommand( +ClusterBase::InvokeCommand( const chip::app::Clusters::AdministratorCommissioning::Commands::OpenBasicCommissioningWindow::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback< + typename chip::app::Clusters::AdministratorCommissioning::Commands::OpenBasicCommissioningWindow::Type::ResponseType>, + CommandResponseFailureCallback); template CHIP_ERROR -ClusterBase::InvokeCommand( +ClusterBase::InvokeCommand( const chip::app::Clusters::AdministratorCommissioning::Commands::OpenCommissioningWindow::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback< + typename chip::app::Clusters::AdministratorCommissioning::Commands::OpenCommissioningWindow::Type::ResponseType>, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR +ClusterBase::InvokeCommand( const chip::app::Clusters::AdministratorCommissioning::Commands::RevokeCommissioning::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback< + typename chip::app::Clusters::AdministratorCommissioning::Commands::RevokeCommissioning::Type::ResponseType>, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::ApplicationBasic::Commands::ChangeStatus::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::ApplicationLauncher::Commands::LaunchApp::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::AudioOutput::Commands::RenameOutput::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::AudioOutput::Commands::SelectOutput::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::BarrierControl::Commands::BarrierControlGoToPercent::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback< + typename chip::app::Clusters::BarrierControl::Commands::BarrierControlGoToPercent::Type::ResponseType>, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::BarrierControl::Commands::BarrierControlStop::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::Basic::Commands::MfgSpecificPing::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::Binding::Commands::Bind::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::Binding::Commands::Unbind::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::BridgedActions::Commands::DisableAction::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::BridgedActions::Commands::DisableActionWithDuration::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback< + typename chip::app::Clusters::BridgedActions::Commands::DisableActionWithDuration::Type::ResponseType>, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::BridgedActions::Commands::EnableAction::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::BridgedActions::Commands::EnableActionWithDuration::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback< + typename chip::app::Clusters::BridgedActions::Commands::EnableActionWithDuration::Type::ResponseType>, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::BridgedActions::Commands::InstantAction::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::BridgedActions::Commands::InstantActionWithTransition::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback< + typename chip::app::Clusters::BridgedActions::Commands::InstantActionWithTransition::Type::ResponseType>, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::BridgedActions::Commands::PauseAction::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::BridgedActions::Commands::PauseActionWithDuration::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback< + typename chip::app::Clusters::BridgedActions::Commands::PauseActionWithDuration::Type::ResponseType>, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::BridgedActions::Commands::ResumeAction::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::BridgedActions::Commands::StartAction::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::BridgedActions::Commands::StartActionWithDuration::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback< + typename chip::app::Clusters::BridgedActions::Commands::StartActionWithDuration::Type::ResponseType>, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::BridgedActions::Commands::StopAction::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::ColorControl::Commands::ColorLoopSet::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::ColorControl::Commands::EnhancedMoveHue::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHue::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHueAndSaturation::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback< + typename chip::app::Clusters::ColorControl::Commands::EnhancedMoveToHueAndSaturation::Type::ResponseType>, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::ColorControl::Commands::EnhancedStepHue::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::ColorControl::Commands::MoveColor::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::ColorControl::Commands::MoveColorTemperature::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::ColorControl::Commands::MoveHue::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::ColorControl::Commands::MoveSaturation::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::ColorControl::Commands::MoveToColor::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::ColorControl::Commands::MoveToColorTemperature::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback< + typename chip::app::Clusters::ColorControl::Commands::MoveToColorTemperature::Type::ResponseType>, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::ColorControl::Commands::MoveToHue::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::ColorControl::Commands::MoveToHueAndSaturation::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback< + typename chip::app::Clusters::ColorControl::Commands::MoveToHueAndSaturation::Type::ResponseType>, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::ColorControl::Commands::MoveToSaturation::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::ColorControl::Commands::StepColor::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::ColorControl::Commands::StepColorTemperature::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::ColorControl::Commands::StepHue::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::ColorControl::Commands::StepSaturation::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::ColorControl::Commands::StopMoveStep::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::ContentLauncher::Commands::LaunchContent::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::ContentLauncher::Commands::LaunchURL::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::DiagnosticLogs::Commands::RetrieveLogsRequest::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::DoorLock::Commands::ClearAllPins::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::DoorLock::Commands::ClearAllRfids::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::DoorLock::Commands::ClearHolidaySchedule::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::DoorLock::Commands::ClearPin::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::DoorLock::Commands::ClearRfid::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::DoorLock::Commands::ClearWeekdaySchedule::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::DoorLock::Commands::ClearYeardaySchedule::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::DoorLock::Commands::GetHolidaySchedule::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::DoorLock::Commands::GetLogRecord::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::DoorLock::Commands::GetPin::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::DoorLock::Commands::GetRfid::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::DoorLock::Commands::GetUserType::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::DoorLock::Commands::GetWeekdaySchedule::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::DoorLock::Commands::GetYeardaySchedule::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::DoorLock::Commands::LockDoor::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::DoorLock::Commands::SetHolidaySchedule::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::DoorLock::Commands::SetPin::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::DoorLock::Commands::SetRfid::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::DoorLock::Commands::SetUserType::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::DoorLock::Commands::SetWeekdaySchedule::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::DoorLock::Commands::SetYeardaySchedule::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::DoorLock::Commands::UnlockDoor::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::DoorLock::Commands::UnlockWithTimeout::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::EthernetNetworkDiagnostics::Commands::ResetCounts::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback< + typename chip::app::Clusters::EthernetNetworkDiagnostics::Commands::ResetCounts::Type::ResponseType>, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::GeneralCommissioning::Commands::ArmFailSafe::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::GeneralCommissioning::Commands::CommissioningComplete::Type &, void *, CommandResponseSuccessCallback< - chip::app::Clusters::GeneralCommissioning::Commands::CommissioningCompleteResponse::DecodableType>, + typename chip::app::Clusters::GeneralCommissioning::Commands::CommissioningComplete::Type::ResponseType>, CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::GeneralCommissioning::Commands::SetRegulatoryConfig::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback< + typename chip::app::Clusters::GeneralCommissioning::Commands::SetRegulatoryConfig::Type::ResponseType>, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::Groups::Commands::AddGroup::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::Groups::Commands::AddGroupIfIdentifying::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::Groups::Commands::GetGroupMembership::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::Groups::Commands::RemoveAllGroups::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::Groups::Commands::RemoveGroup::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::Groups::Commands::ViewGroup::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::Identify::Commands::Identify::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::Identify::Commands::IdentifyQuery::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::Identify::Commands::TriggerEffect::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::KeypadInput::Commands::SendKey::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::LevelControl::Commands::Move::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::LevelControl::Commands::MoveToLevelWithOnOff::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::LevelControl::Commands::MoveWithOnOff::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::LevelControl::Commands::Step::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::LevelControl::Commands::StepWithOnOff::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::LevelControl::Commands::Stop::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::LevelControl::Commands::StopWithOnOff::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::LowPower::Commands::Sleep::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::MediaInput::Commands::HideInputStatus::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::MediaInput::Commands::RenameInput::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::MediaInput::Commands::SelectInput::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::MediaInput::Commands::ShowInputStatus::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::MediaPlayback::Commands::MediaFastForward::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::MediaPlayback::Commands::MediaNext::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::MediaPlayback::Commands::MediaPause::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::MediaPlayback::Commands::MediaPlay::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::MediaPlayback::Commands::MediaPrevious::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::MediaPlayback::Commands::MediaRewind::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::MediaPlayback::Commands::MediaSeek::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::MediaPlayback::Commands::MediaSkipBackward::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::MediaPlayback::Commands::MediaSkipForward::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::MediaPlayback::Commands::MediaStartOver::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::MediaPlayback::Commands::MediaStop::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::ModeSelect::Commands::ChangeToMode::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::NetworkCommissioning::Commands::AddThreadNetwork::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback< + typename chip::app::Clusters::NetworkCommissioning::Commands::AddThreadNetwork::Type::ResponseType>, CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::NetworkCommissioning::Commands::AddWiFiNetwork::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback< + typename chip::app::Clusters::NetworkCommissioning::Commands::AddWiFiNetwork::Type::ResponseType>, CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::NetworkCommissioning::Commands::DisableNetwork::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback< + typename chip::app::Clusters::NetworkCommissioning::Commands::DisableNetwork::Type::ResponseType>, CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::NetworkCommissioning::Commands::EnableNetwork::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::NetworkCommissioning::Commands::RemoveNetwork::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::NetworkCommissioning::Commands::ScanNetworks::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::NetworkCommissioning::Commands::UpdateThreadNetwork::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback< + typename chip::app::Clusters::NetworkCommissioning::Commands::UpdateThreadNetwork::Type::ResponseType>, CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::NetworkCommissioning::Commands::UpdateWiFiNetwork::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback< + typename chip::app::Clusters::NetworkCommissioning::Commands::UpdateWiFiNetwork::Type::ResponseType>, CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::ApplyUpdateRequest::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback< + typename chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::ApplyUpdateRequest::Type::ResponseType>, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::NotifyUpdateApplied::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback< + typename chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::NotifyUpdateApplied::Type::ResponseType>, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::QueryImage::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback< + typename chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::QueryImage::Type::ResponseType>, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR +ClusterBase::InvokeCommand( const chip::app::Clusters::OtaSoftwareUpdateRequestor::Commands::AnnounceOtaProvider::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback< + typename chip::app::Clusters::OtaSoftwareUpdateRequestor::Commands::AnnounceOtaProvider::Type::ResponseType>, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::OnOff::Commands::Off::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::OnOff::Commands::OffWithEffect::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::OnOff::Commands::On::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::OnOff::Commands::OnWithRecallGlobalScene::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::OnOff::Commands::OnWithTimedOff::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::OnOff::Commands::Toggle::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::OperationalCredentials::Commands::AddNOC::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); template CHIP_ERROR -ClusterBase::InvokeCommand( +ClusterBase::InvokeCommand( const chip::app::Clusters::OperationalCredentials::Commands::AddTrustedRootCertificate::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback< + typename chip::app::Clusters::OperationalCredentials::Commands::AddTrustedRootCertificate::Type::ResponseType>, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::OperationalCredentials::Commands::AttestationRequest::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback< + typename chip::app::Clusters::OperationalCredentials::Commands::AttestationRequest::Type::ResponseType>, CommandResponseFailureCallback); template CHIP_ERROR -ClusterBase::InvokeCommand( +ClusterBase::InvokeCommand( const chip::app::Clusters::OperationalCredentials::Commands::CertificateChainRequest::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback< + typename chip::app::Clusters::OperationalCredentials::Commands::CertificateChainRequest::Type::ResponseType>, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::OperationalCredentials::Commands::OpCSRRequest::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback< + typename chip::app::Clusters::OperationalCredentials::Commands::OpCSRRequest::Type::ResponseType>, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::OperationalCredentials::Commands::RemoveFabric::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback< + typename chip::app::Clusters::OperationalCredentials::Commands::RemoveFabric::Type::ResponseType>, CommandResponseFailureCallback); template CHIP_ERROR -ClusterBase::InvokeCommand( +ClusterBase::InvokeCommand( const chip::app::Clusters::OperationalCredentials::Commands::RemoveTrustedRootCertificate::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback< + typename chip::app::Clusters::OperationalCredentials::Commands::RemoveTrustedRootCertificate::Type::ResponseType>, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::OperationalCredentials::Commands::UpdateFabricLabel::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback< + typename chip::app::Clusters::OperationalCredentials::Commands::UpdateFabricLabel::Type::ResponseType>, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::OperationalCredentials::Commands::UpdateNOC::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::Scenes::Commands::AddScene::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::Scenes::Commands::GetSceneMembership::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::Scenes::Commands::RecallScene::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::Scenes::Commands::RemoveAllScenes::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::Scenes::Commands::RemoveScene::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::Scenes::Commands::StoreScene::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::Scenes::Commands::ViewScene::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::SoftwareDiagnostics::Commands::ResetWatermarks::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback< + typename chip::app::Clusters::SoftwareDiagnostics::Commands::ResetWatermarks::Type::ResponseType>, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::TvChannel::Commands::ChangeChannel::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::TvChannel::Commands::ChangeChannelByNumber::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::TvChannel::Commands::SkipChannel::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::TargetNavigator::Commands::NavigateTarget::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::TestCluster::Commands::Test::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::TestCluster::Commands::TestAddArguments::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::TestCluster::Commands::TestEnumsRequest::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::TestCluster::Commands::TestListInt8UArgumentRequest::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback< + typename chip::app::Clusters::TestCluster::Commands::TestListInt8UArgumentRequest::Type::ResponseType>, CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::TestCluster::Commands::TestListInt8UReverseRequest::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback< + typename chip::app::Clusters::TestCluster::Commands::TestListInt8UReverseRequest::Type::ResponseType>, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::TestCluster::Commands::TestListStructArgumentRequest::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback< + typename chip::app::Clusters::TestCluster::Commands::TestListStructArgumentRequest::Type::ResponseType>, CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::TestCluster::Commands::TestNotHandled::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::TestCluster::Commands::TestNullableOptionalRequest::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback< + typename chip::app::Clusters::TestCluster::Commands::TestNullableOptionalRequest::Type::ResponseType>, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::TestCluster::Commands::TestSpecific::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::TestCluster::Commands::TestStructArgumentRequest::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback< + typename chip::app::Clusters::TestCluster::Commands::TestStructArgumentRequest::Type::ResponseType>, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::TestCluster::Commands::TestUnknownCommand::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::Thermostat::Commands::ClearWeeklySchedule::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::Thermostat::Commands::GetRelayStatusLog::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::Thermostat::Commands::GetWeeklySchedule::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::Thermostat::Commands::SetWeeklySchedule::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::Thermostat::Commands::SetpointRaiseLower::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::ThreadNetworkDiagnostics::Commands::ResetCounts::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback< + typename chip::app::Clusters::ThreadNetworkDiagnostics::Commands::ResetCounts::Type::ResponseType>, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::WiFiNetworkDiagnostics::Commands::ResetCounts::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::WindowCovering::Commands::DownOrClose::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::WindowCovering::Commands::GoToLiftPercentage::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::WindowCovering::Commands::GoToLiftValue::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::WindowCovering::Commands::GoToTiltPercentage::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::WindowCovering::Commands::GoToTiltValue::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::WindowCovering::Commands::StopMotion::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::WindowCovering::Commands::UpOrOpen::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template +template CHIP_ERROR ClusterBase::InvokeCommand(const RequestDataT & requestData, void * context, - CommandResponseSuccessCallback successCb, + CommandResponseSuccessCallback successCb, CommandResponseFailureCallback failureCb) { VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); auto onSuccessCb = [context, successCb](const app::ConcreteCommandPath & commandPath, const app::StatusIB & aStatus, - const ResponseDataT & responseData) { successCb(context, responseData); }; + const typename RequestDataT::ResponseType & responseData) { + successCb(context, responseData); + }; auto onFailureCb = [context, failureCb](const app::StatusIB & aStatus, CHIP_ERROR aError) { failureCb(context, app::ToEmberAfStatus(aStatus.mStatus)); }; - return InvokeCommandRequest(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), mEndpoint, - requestData, onSuccessCb, onFailureCb); + return InvokeCommandRequest(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), mEndpoint, requestData, + onSuccessCb, onFailureCb); }; } // namespace Controller diff --git a/zzz_generated/lighting-app/zap-generated/CHIPClustersInvoke.cpp b/zzz_generated/lighting-app/zap-generated/CHIPClustersInvoke.cpp index 582acfe9f12b0a..23dd8f54d065ab 100644 --- a/zzz_generated/lighting-app/zap-generated/CHIPClustersInvoke.cpp +++ b/zzz_generated/lighting-app/zap-generated/CHIPClustersInvoke.cpp @@ -30,22 +30,24 @@ using namespace Encoding::LittleEndian; namespace Controller { -template +template CHIP_ERROR ClusterBase::InvokeCommand(const RequestDataT & requestData, void * context, - CommandResponseSuccessCallback successCb, + CommandResponseSuccessCallback successCb, CommandResponseFailureCallback failureCb) { VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); auto onSuccessCb = [context, successCb](const app::ConcreteCommandPath & commandPath, const app::StatusIB & aStatus, - const ResponseDataT & responseData) { successCb(context, responseData); }; + const typename RequestDataT::ResponseType & responseData) { + successCb(context, responseData); + }; auto onFailureCb = [context, failureCb](const app::StatusIB & aStatus, CHIP_ERROR aError) { failureCb(context, app::ToEmberAfStatus(aStatus.mStatus)); }; - return InvokeCommandRequest(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), mEndpoint, - requestData, onSuccessCb, onFailureCb); + return InvokeCommandRequest(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), mEndpoint, requestData, + onSuccessCb, onFailureCb); }; } // namespace Controller diff --git a/zzz_generated/ota-requestor-app/zap-generated/CHIPClustersInvoke.cpp b/zzz_generated/ota-requestor-app/zap-generated/CHIPClustersInvoke.cpp index 3c48b3d64f383b..e96a465a005b5c 100644 --- a/zzz_generated/ota-requestor-app/zap-generated/CHIPClustersInvoke.cpp +++ b/zzz_generated/ota-requestor-app/zap-generated/CHIPClustersInvoke.cpp @@ -30,41 +30,42 @@ using namespace Encoding::LittleEndian; namespace Controller { -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::ApplyUpdateRequest::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback< + typename chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::ApplyUpdateRequest::Type::ResponseType>, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::NotifyUpdateApplied::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback< + typename chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::NotifyUpdateApplied::Type::ResponseType>, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::QueryImage::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback< + typename chip::app::Clusters::OtaSoftwareUpdateProvider::Commands::QueryImage::Type::ResponseType>, CommandResponseFailureCallback); -template +template CHIP_ERROR ClusterBase::InvokeCommand(const RequestDataT & requestData, void * context, - CommandResponseSuccessCallback successCb, + CommandResponseSuccessCallback successCb, CommandResponseFailureCallback failureCb) { VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); auto onSuccessCb = [context, successCb](const app::ConcreteCommandPath & commandPath, const app::StatusIB & aStatus, - const ResponseDataT & responseData) { successCb(context, responseData); }; + const typename RequestDataT::ResponseType & responseData) { + successCb(context, responseData); + }; auto onFailureCb = [context, failureCb](const app::StatusIB & aStatus, CHIP_ERROR aError) { failureCb(context, app::ToEmberAfStatus(aStatus.mStatus)); }; - return InvokeCommandRequest(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), mEndpoint, - requestData, onSuccessCb, onFailureCb); + return InvokeCommandRequest(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), mEndpoint, requestData, + onSuccessCb, onFailureCb); }; } // namespace Controller diff --git a/zzz_generated/pump-app/zap-generated/CHIPClustersInvoke.cpp b/zzz_generated/pump-app/zap-generated/CHIPClustersInvoke.cpp index 582acfe9f12b0a..23dd8f54d065ab 100644 --- a/zzz_generated/pump-app/zap-generated/CHIPClustersInvoke.cpp +++ b/zzz_generated/pump-app/zap-generated/CHIPClustersInvoke.cpp @@ -30,22 +30,24 @@ using namespace Encoding::LittleEndian; namespace Controller { -template +template CHIP_ERROR ClusterBase::InvokeCommand(const RequestDataT & requestData, void * context, - CommandResponseSuccessCallback successCb, + CommandResponseSuccessCallback successCb, CommandResponseFailureCallback failureCb) { VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); auto onSuccessCb = [context, successCb](const app::ConcreteCommandPath & commandPath, const app::StatusIB & aStatus, - const ResponseDataT & responseData) { successCb(context, responseData); }; + const typename RequestDataT::ResponseType & responseData) { + successCb(context, responseData); + }; auto onFailureCb = [context, failureCb](const app::StatusIB & aStatus, CHIP_ERROR aError) { failureCb(context, app::ToEmberAfStatus(aStatus.mStatus)); }; - return InvokeCommandRequest(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), mEndpoint, - requestData, onSuccessCb, onFailureCb); + return InvokeCommandRequest(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), mEndpoint, requestData, + onSuccessCb, onFailureCb); }; } // namespace Controller diff --git a/zzz_generated/pump-controller-app/zap-generated/CHIPClustersInvoke.cpp b/zzz_generated/pump-controller-app/zap-generated/CHIPClustersInvoke.cpp index 43b67771204d54..fa2d919cc3bd87 100644 --- a/zzz_generated/pump-controller-app/zap-generated/CHIPClustersInvoke.cpp +++ b/zzz_generated/pump-controller-app/zap-generated/CHIPClustersInvoke.cpp @@ -30,77 +30,79 @@ using namespace Encoding::LittleEndian; namespace Controller { -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::LevelControl::Commands::Move::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::LevelControl::Commands::MoveToLevel::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::LevelControl::Commands::MoveToLevelWithOnOff::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::LevelControl::Commands::MoveWithOnOff::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::LevelControl::Commands::Step::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::LevelControl::Commands::StepWithOnOff::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::LevelControl::Commands::Stop::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::LevelControl::Commands::StopWithOnOff::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::OnOff::Commands::Off::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::OnOff::Commands::On::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::OnOff::Commands::Toggle::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template +template CHIP_ERROR ClusterBase::InvokeCommand(const RequestDataT & requestData, void * context, - CommandResponseSuccessCallback successCb, + CommandResponseSuccessCallback successCb, CommandResponseFailureCallback failureCb) { VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); auto onSuccessCb = [context, successCb](const app::ConcreteCommandPath & commandPath, const app::StatusIB & aStatus, - const ResponseDataT & responseData) { successCb(context, responseData); }; + const typename RequestDataT::ResponseType & responseData) { + successCb(context, responseData); + }; auto onFailureCb = [context, failureCb](const app::StatusIB & aStatus, CHIP_ERROR aError) { failureCb(context, app::ToEmberAfStatus(aStatus.mStatus)); }; - return InvokeCommandRequest(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), mEndpoint, - requestData, onSuccessCb, onFailureCb); + return InvokeCommandRequest(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), mEndpoint, requestData, + onSuccessCb, onFailureCb); }; } // namespace Controller diff --git a/zzz_generated/thermostat/zap-generated/CHIPClustersInvoke.cpp b/zzz_generated/thermostat/zap-generated/CHIPClustersInvoke.cpp index 10cfbc0c726183..0ccec23a26e1e6 100644 --- a/zzz_generated/thermostat/zap-generated/CHIPClustersInvoke.cpp +++ b/zzz_generated/thermostat/zap-generated/CHIPClustersInvoke.cpp @@ -30,33 +30,34 @@ using namespace Encoding::LittleEndian; namespace Controller { -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::Identify::Commands::Identify::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback, + CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::Identify::Commands::IdentifyQuery::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template +template CHIP_ERROR ClusterBase::InvokeCommand(const RequestDataT & requestData, void * context, - CommandResponseSuccessCallback successCb, + CommandResponseSuccessCallback successCb, CommandResponseFailureCallback failureCb) { VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); auto onSuccessCb = [context, successCb](const app::ConcreteCommandPath & commandPath, const app::StatusIB & aStatus, - const ResponseDataT & responseData) { successCb(context, responseData); }; + const typename RequestDataT::ResponseType & responseData) { + successCb(context, responseData); + }; auto onFailureCb = [context, failureCb](const app::StatusIB & aStatus, CHIP_ERROR aError) { failureCb(context, app::ToEmberAfStatus(aStatus.mStatus)); }; - return InvokeCommandRequest(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), mEndpoint, - requestData, onSuccessCb, onFailureCb); + return InvokeCommandRequest(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), mEndpoint, requestData, + onSuccessCb, onFailureCb); }; } // namespace Controller diff --git a/zzz_generated/tv-app/zap-generated/CHIPClustersInvoke.cpp b/zzz_generated/tv-app/zap-generated/CHIPClustersInvoke.cpp index d792245340f9c7..ff7b2aa7d9afe5 100644 --- a/zzz_generated/tv-app/zap-generated/CHIPClustersInvoke.cpp +++ b/zzz_generated/tv-app/zap-generated/CHIPClustersInvoke.cpp @@ -30,116 +30,105 @@ using namespace Encoding::LittleEndian; namespace Controller { -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::GeneralCommissioning::Commands::ArmFailSafe::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::GeneralCommissioning::Commands::CommissioningComplete::Type &, void *, CommandResponseSuccessCallback< - chip::app::Clusters::GeneralCommissioning::Commands::CommissioningCompleteResponse::DecodableType>, + typename chip::app::Clusters::GeneralCommissioning::Commands::CommissioningComplete::Type::ResponseType>, CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::GeneralCommissioning::Commands::SetRegulatoryConfig::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback< + typename chip::app::Clusters::GeneralCommissioning::Commands::SetRegulatoryConfig::Type::ResponseType>, CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::NetworkCommissioning::Commands::DisableNetwork::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback< + typename chip::app::Clusters::NetworkCommissioning::Commands::DisableNetwork::Type::ResponseType>, CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::NetworkCommissioning::Commands::EnableNetwork::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::NetworkCommissioning::Commands::RemoveNetwork::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::NetworkCommissioning::Commands::ScanNetworks::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::OperationalCredentials::Commands::AddNOC::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback, CommandResponseFailureCallback); template CHIP_ERROR -ClusterBase::InvokeCommand( +ClusterBase::InvokeCommand( const chip::app::Clusters::OperationalCredentials::Commands::AddTrustedRootCertificate::Type &, void *, - CommandResponseSuccessCallback, CommandResponseFailureCallback); + CommandResponseSuccessCallback< + typename chip::app::Clusters::OperationalCredentials::Commands::AddTrustedRootCertificate::Type::ResponseType>, + CommandResponseFailureCallback); -template CHIP_ERROR -ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::OperationalCredentials::Commands::AttestationRequest::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback< + typename chip::app::Clusters::OperationalCredentials::Commands::AttestationRequest::Type::ResponseType>, CommandResponseFailureCallback); template CHIP_ERROR -ClusterBase::InvokeCommand( +ClusterBase::InvokeCommand( const chip::app::Clusters::OperationalCredentials::Commands::CertificateChainRequest::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback< + typename chip::app::Clusters::OperationalCredentials::Commands::CertificateChainRequest::Type::ResponseType>, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::OperationalCredentials::Commands::OpCSRRequest::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback< + typename chip::app::Clusters::OperationalCredentials::Commands::OpCSRRequest::Type::ResponseType>, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::OperationalCredentials::Commands::RemoveFabric::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback< + typename chip::app::Clusters::OperationalCredentials::Commands::RemoveFabric::Type::ResponseType>, CommandResponseFailureCallback); -template CHIP_ERROR ClusterBase::InvokeCommand( +template CHIP_ERROR ClusterBase::InvokeCommand( const chip::app::Clusters::OperationalCredentials::Commands::UpdateFabricLabel::Type &, void *, - CommandResponseSuccessCallback, + CommandResponseSuccessCallback< + typename chip::app::Clusters::OperationalCredentials::Commands::UpdateFabricLabel::Type::ResponseType>, CommandResponseFailureCallback); -template +template CHIP_ERROR ClusterBase::InvokeCommand(const RequestDataT & requestData, void * context, - CommandResponseSuccessCallback successCb, + CommandResponseSuccessCallback successCb, CommandResponseFailureCallback failureCb) { VerifyOrReturnError(mDevice != nullptr, CHIP_ERROR_INCORRECT_STATE); auto onSuccessCb = [context, successCb](const app::ConcreteCommandPath & commandPath, const app::StatusIB & aStatus, - const ResponseDataT & responseData) { successCb(context, responseData); }; + const typename RequestDataT::ResponseType & responseData) { + successCb(context, responseData); + }; auto onFailureCb = [context, failureCb](const app::StatusIB & aStatus, CHIP_ERROR aError) { failureCb(context, app::ToEmberAfStatus(aStatus.mStatus)); }; - return InvokeCommandRequest(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), mEndpoint, - requestData, onSuccessCb, onFailureCb); + return InvokeCommandRequest(mDevice->GetExchangeManager(), mDevice->GetSecureSession().Value(), mEndpoint, requestData, + onSuccessCb, onFailureCb); }; } // namespace Controller